vng-realisatie / documenten-api Goto Github PK
View Code? Open in Web Editor NEWDocumenten API ontsloten in een Documentregistratiecomponent (DRC)
Home Page: https://vng-realisatie.github.io/gemma-zaken/
License: Other
Documenten API ontsloten in een Documentregistratiecomponent (DRC)
Home Page: https://vng-realisatie.github.io/gemma-zaken/
License: Other
I'm missing the model and API interface to create ZaakInformatieObject
. When I register those, I need to supply the URL to an EnkelvoudigInformatieObject
and the URL to a Zaak
.
verplicht indien inhoud
gezet is (=altijd in huidige vorm)
bestandsnaam
gezet is, en uit de extensie kan niet het formaat worden afgeleid
moet valide MIME-type (of subtype) zijn
I'm missing tests that show it's possible to create/retrieve uploaded files. These tests should go in the src/drc/api/tests/
directory
Specifically - you need an upload_to
argument for models.FileField
, because at some point you'll run into the limit of how many files you can actually keep in one directory (settings.MEDIA_ROOT
in this case). Using year/month subfolders should be sufficient
Ik probeer een nieuwe Melding Openbare Ruimte toe te voegen met de gemma-zaken-demo applicatie. Het werkt prima zonder bijlage, maar met bijlage krijg ik de volgende foutmelding op de demo applicatie:
Verzoek / antwoord ziet er als volgt uit:
Wanneer ik handmatig in de admin van gemma-drc een objectinformatieobject
probeer aan te maken dan krijg ik ook de foutmelding: "Could not create remote relation":
Het interessante is dat in de stack trace de volgende foutmelding staat:
Let met name op de dubbel slash: /api/v1//zaken/...
, dat klopt inderdaad niet, hier krijg ik ook een 404 op. Met enkele slash kan ik de URL vanuit mijn browser benaderen.
Wat meer stack trace:
Waar komt deze dubbele slash vandaan?
Nu is er de (verborgen) IS_HTTPS
envvar die gebruikt wordt om interne URLs op te bouwen buiten de request-response cycle. Het zou handig zijn als dit op de site (in de DB) kan geconfigureerd worden.
Verder is getting-started documentatie wel handig om het onboarden te versoepelen.
(cc/ @bartjkdp)
I know it's in the library - the check happens here:
if file_extension not in self.ALLOWED_TYPES:
raise ValidationError(self.INVALID_TYPE_MESSAGE)
A clever workaround would be:
class AnyFileType:
def __contains__(self, item):
return True
...
class SomeField(...):
ALLOWED_TYPES = AnyFileType()
CustomBase64File
as a field name is a bit weird too - maybe name it AnyBase64File
?
in drc.api.urls
:
router.register('enkelvoudiginformatieobject', EnkelvoudigInformatieObjectViewSet)
should be
router.register('enkelvoudiginformatieobjecten', EnkelvoudigInformatieObjectViewSet)
Currently scopes/auth aren't enforced for DRC, which they should be.
A similar setup to https://github.com/vng-Realisatie/gemma-zaakregistratiecomponent should be used.
Besproken met Michiel dat we op korte termijn de verschillen tussen de 1.1 en de voorgaande versie in kaart brengen zodat verschillende test-suites geupdate kunnen worden.
Bijv. https://github.com/open-zaak/drc-tas-restapi
application/problem+json
has turned into application/json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.