-
Notifications
You must be signed in to change notification settings - Fork 28
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
Als vakapplicatieontwikkelaar wil ik weten hoe error-responses eruit zien... #130
Comments
@TCIMEddy yep, het puntje 'architectuur schetsje' is hier niet van toepassing. |
Vraag uitgezet n.a.v. DSO API-strategie error-formaat: https://forum.pdok.nl/t/formaat-foutafhandeling-input-validatie-api-50/1848 |
Antwoorden zijn duidelijk (en worden deels in design-keuzes opgenomen)
|
Conform aan ZRC implementatie, neem de mogelijke foutantwoorden op in de `openapi.yaml` spec. Ook is dezelfde styling van foutpagina's overnomen uit het ZRC.
…ze-fouten Ref #130 -- Documenteer meerdere validatiefouten responses
Deze PR doet aan aanzet op het document voor de eigenlijke standaard. Er zijn veel TODOs en er kan vast veel verbeterd worden, maar de validaties moeten wel tekstueel beschreven zijn om opgenomen te kunnen worden.
Conform aan ZRC implementatie, neem de mogelijke foutantwoorden op in de `openapi.yaml` spec. Ook is dezelfde styling van foutpagina's overnomen uit het ZRC.
…d-params format
iets voor @zomwoof denk ik |
Ref. VNG-Realisatie/gemma-zaken#130 -- mogelijke foutantwoorden in OAS
Ref. #130 -- documenteer validaties & fout responses (in WIP-standaard)
Volgens de DSO API Strategie en de internetstandaard RFC7807 (Problem Details for HTTP APIs) dient het media type bij error-responses |
Correcte error response MimeType `application/error+json` volgens DSO API-richtlijnen (dank aan @zomwoof voor de review en opmerken).
…metype Fixes #130 -- correctie op OpenAPI spec m/b tot mimetype foutberichten
* StatusType.volgnummer toegevoegd t.b.v. VNG-Realisatie#153 * Update API spec n.a.v. API aanpassingen * Ref. VNG-Realisatie/gemma-zaken#130 -- mogelijke foutantwoorden in OAS * DSO API-50 tests toegevoegd * Ref. VNG-Realisatie/gemma-zaken#162 -- clean up BesluitType data model * Ref. VNG-Realisatie/gemma-zaken#162 -- voeg besluittype toe aan API * US-162 -- fix tests * Besluittype tests * Correcte MIME-types voor error responses * Fix incorrect content-type * Set up contrib.sites * Bump zds-schema version * Logisch attribuut "isEindstatus" toegevoegd aan StatusType t.b.v. US 351. * Publicatietekst & toelichting hebben geen lengte-limitatie Zie: https://github.com/VNG-Realisatie/gemma-zaken/pull/362\#pullrequestreview-168803832 * added initial jenkinsfile * removed AS production form the last docker phase * jenkinsfile with new phases * trigger for branch develop * fix typo (#1) * Features/bas 1271 (#2) * fix typo * trigger on master branch
* StatusType.volgnummer toegevoegd t.b.v. VNG-Realisatie#153 * Update API spec n.a.v. API aanpassingen * Ref. VNG-Realisatie/gemma-zaken#130 -- mogelijke foutantwoorden in OAS * DSO API-50 tests toegevoegd * Ref. VNG-Realisatie/gemma-zaken#162 -- clean up BesluitType data model * Ref. VNG-Realisatie/gemma-zaken#162 -- voeg besluittype toe aan API * US-162 -- fix tests * Besluittype tests * Correcte MIME-types voor error responses * Fix incorrect content-type * Set up contrib.sites * Bump zds-schema version * Logisch attribuut "isEindstatus" toegevoegd aan StatusType t.b.v. US 351. * Publicatietekst & toelichting hebben geen lengte-limitatie Zie: https://github.com/VNG-Realisatie/gemma-zaken/pull/362\#pullrequestreview-168803832 * added initial jenkinsfile * removed AS production form the last docker phase * jenkinsfile with new phases * trigger for branch develop * fix typo (#1) * Features/bas 1271 (#2) * fix typo * trigger on master branch * enabled slack channel and changed the channel * Merge upstream changes into fork (#4) * corrected some errors in documentation configuration * 💥 OAUTH2 out, JWT in * ✅ Add authorization tests * 💄 Expose scopes documentation page * 📝 Put AUTH requirements in API spec * ⬆️ Bump zds_schema version * ✨ Set up JWTSecret registration endpoint * 🔖 Bump version & update changelog * ✨ Add support for directly serving OAS 3.0. * 🔖 Bump versie & update changelog 0.5.0 release * Informatieobjecttypen beschikbaar gemaakt via catalogus. * Fixes gemma-zaken/#566: Element besluittypen toegevoegd aan zaaktype en beheerbaar gemaakt in admin. * 🐛 API-50 fix in vorm van foutberichten van zds-schema doorgevoerd * 🔖 Bump versie & update changelog 0.5.1 release * 🐛 API-50 fix in vorm van foutberichten van zds-schema doorgevoerd * 🔖 Bump versie & update changelog 0.5.1 release * 🐛 Update fixture - remove oauth* things * ⬆️ Bump naar zds-schema 0.14.0 om JWT decode-problemen correct af te vangen * ⬆️ Bump naar zds-schema 0.15.2 * ✅ Add test for invalid query params * ✨ Throw error on invalid params * ♻️ Gebruik zds_schema NestedViewSetMixin * 📝 Update API spec * ⬆️ Bump naar zds-schema 0.16.1 Deze zorgt ervoor dat `Authorization: Bearer <jwt>` herkend wordt. * 🐳 Parametrize more in Docker The port that uwsgi should bind to can now be specified as well, allowing the network mode 'host' to be used in docker-compose * 🔖 Bump version & update changelog * ⬆️ Bump to zds-schema 0.17.1 * Fixes missing Location header _when_ we get create operations * Uses generic APIVersion middleware * Fixes server URLs in OAS * 🔖 Bump version & update changelog * Fixes VNG-Realisatie/gemma-zaken/#593 Changed unicity from generic role description to role description, combined with zaaktype. * Fixes InformatieObjectTypes as part of the catalogus API * Added more required scopes. * 🔒 Lock down permissions in ZTC * ⬆️ Bump zds-schema fix for api root view * 🔖 Bump version & update changelog * ⬆️ Fix zds-schema version * ⬆️ Update to latest zds-schema fixes * ✨ Use a session cookie name per services This fixes being logged out all the time on the same domain when switching between services * 🔖 Bump version & update changelog * 💥 Renamed StatusType.is_van to StatusType.zaaktype * 💥 Renamed X.maaktDeelUitVan to X.catalogus * ⬆️ Bump Django and urllib * urllib3<=1.22 has a CVE * use latest patch release of Django 2.0 * 🔧 Increase buffer size to accomodate large headers Java/Spring sends an obnoxiously large Accept-Charset header, proving to be problematic combined with the bulkiness of JWTs. * 🐛 Don't compare datetimes with None * ✨ Add download of fixture data and instructions on how to use it * 🔖 Bump version & update changelog * ⬆️ Bump to zds-schema 0.17.9 * 👌 Specify correct title for zaaktype attribute * 🔖 Version bump & update changelog
...zodat ik deze consistent in mijn applicatie kan verwerken.
PR: #360
Definition of done
Acceptatiecriteria
Uit de algemene uitgangspunten:
Voldoet aan RGBZ 2.0n.v.t.Voldoet aan GEMMA 2.0n.v.t.Taken
The text was updated successfully, but these errors were encountered: