-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ODRC: Publicatie & Document API resources #2
Comments
Considerations for estimate (5-10 work days)
|
Initial pass for the API resource, which is going to be wildly incomplete, but it's a starting point for something that is useful for the publication component/burger portaal Publicatie:
type: object
properties:
uuid:
type: string
format: uuid
name:
type: string
status:
type: string
enum:
- draft
- published
- retracted
documenten:
type: array
minItems: 0
items:
$ref: '#/Document'
createdOn:
type: string
format: date-time
creator:
type: object
properties:
displayName:
type: string
identifier:
type: string
Document:
type: object
properties:
uitgever:
$ref: '#/OrganisatieReference'
verantwoordelijke:
$ref: '#/OrganisatieReference'
titel:
type: string
informatiecategorie:
type: object
properties:
name:
type: string
identifier:
type: string
format: uri
origin:
type: string
enum:
- waardelijst
- zelf_toegevoegd
creatiedatum:
type: string
format: date
documenthandeling:
type: object
properties:
soortHandeling:
type: string
enum: # uit waardelijst
- foo
- bar
tijdstip:
type: string
format: date-time
documentsoort:
type: object
properties:
name:
type: string
identifier: # uit waardelijst
type: string
format: uri
thema:
type: object
properties:
name:
type: string
identifier: # uit waardelijst
type: string
format: uri
geldigheid:
type: object
properties:
begin:
type: string
format: date
eind:
type: string
format: date
downloadUrl: # read-only
type: string
format: uri
OrganisatieReference:
type: object
properties:
name:
type: string
identifier:
type: string
format: uri |
Estimate still at 5-10 days |
@sergei-maertens Ik heb het kopje "acceptatiecriteria" ingevuld. Kun je hier eens naar kijken en er feedback op geven?
|
See: GPP-Woo/GPP-app#34 for part of the UI work |
|
Description (why)
uit PSA: Bovenop die opslag kunnen de eerste API’s gerealiseerd worden. Het kunnen creëren, raadplegen,
muteren en verwijderen van publicaties ligt voor de hand. Wanneer bij het inrichten van de data
opslag al rekening is gehouden worden met toekomstige epics, kan dat ook al hier. Bij het
realiseren van de API’s kan ook gelijk geborgd worden dat de logging wordt gevuld.
Acceptance criteria (what)
Publicatie: moved to #35
Document: broken up into #37, #38 and #19
format
wordt automatisch herkend (dus niet aangeleverd in de API-call).Specific details (how)
Test plan
Tasks
ODRC: Publicatie resource #35
ODRC: Add filter parameters to Publicatie list endpoint #68
Expose owner/creator of Publicatie and allow filtering #69
ODRC: Add Document data model #37
ODRC: expose READ operations for Document resource #38
ODRC: implement Document creation/upload #19
Additional metadata (TODO/more refinement needed)
organization
(required), which is the publishing organizationorganisatie_onderdeel
(optional), which must be an OO (ODRC: Toevoegen andere organisaties en organisatieonderdelen #8) within the selectedorganization
informatiecategorie
, see ODRC: implement informatiecategorie resource #14 - assumption: this kind of metadata is the same for all documents inside publicationthema
, see ODRC: Toevoegen themas #11 - assumption: this kind of metadata is the same for all documents inside publicationAdditional
Document
metadatadocumenthandeling
,documentsoort
,geldigheid
Optimize list API endpoint
/api/v1/documenten
for Sitemap generation (TODO: refine)verantwoordelijke
,informatiecategorie
,publicatie__created_on
origin=waardelijst
which filters out documents with a informatiecategorie/organisatie with originzelf_toegevoegd
. This is to ensure that we only retrieve data that can be indexed in the national index, to build the sitemaps.Update publicatie resource to emit nested
documenten
resource (no URL references, expand them directly)The text was updated successfully, but these errors were encountered: