OCR-D / spec

Specification of the @OCR-D technical architecture, interface definitions and data exchange format(s)
https://ocr-d.de/en/spec/
17 stars 5 forks source link

openapi: support content-negotiation via Accept for /workspace #210

Closed kba closed 2 years ago

kba commented 2 years ago

cf. https://github.com/OCR-D/zenhub/issues/103

Depending on the Accept HTTP header, return either the JSON description of the workspace or the workspace itself.

kba commented 2 years ago

ps: I don't know if/how I can add my change-suggestions to this PR as just a suggestion and approve anyway so I skipped that.

Feel free to change accordingly. For DELETE it really makes little sense, for PUT it might be, but I really don't care either way. In reality, I almost never inspect the response to POST/PUT/DELETE except for error messages.

You can directly append the PR by checking out the openapi-workspace-zip branch:

git fetch origin
git checkout -t origin/openapi-workspace-zip
# do changes, commit and push