LD4P / sinopia_server

[Deprecated - switching to MongoDB] Sinopia Back-end CRUD Service. LDP-inspired, HTTP Server taking JSON-LD resources & administrative metadata.
Apache License 2.0
1 stars 1 forks source link

Change swagger spec for updating a plain json resource and regen api code #94

Closed jgreben closed 5 years ago

jgreben commented 5 years ago

Swagger spec should allow the generated updateResourceWithHttpInfo() method to accept contentType: 'application/json' (similar to createResourceWithHttpInfo())

jgreben commented 5 years ago

Probably should also do deleteResourceWithHttpInfo() while you are at it. They are probably going to want a way to delete resources at some point in the near future, even if it's not in this workcycle...

mjgiarlo commented 5 years ago

Unassigning because not in progress yet.

mjgiarlo commented 5 years ago

@jgreben :speech_balloon:

Probably should also do deleteResourceWithHttpInfo() while you are at it. They are probably going to want a way to delete resources at some point in the near future, even if it's not in this workcycle...

As I understand it, the delete resource request does not include a request body, so passing a content-type header wouldn't get us anything (because there is no content type).

jmartin-sul commented 5 years ago

As I understand it, the delete resource request does not include a request body, so passing a content-type header wouldn't get us anything (because there is no content type).

that sounds reasonable to me