Details
-
Task
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
Yes
Description
Using the POST for properties endpoint never works as the value array is always empty on the server side.
Take the example:
curl http://localhost:8080/magnoliaAuthor/.rest/properties/v1/website/travel/title \ -H "Content-Type: application/json" \ -X POST -i \ --user superuser:superuser \ --data \ '{ "value": [ "Magnolia Travels Home " ] }'
When I debug the call I see that the bad request comes from:
if (!multiple && valueStrings.size() != 1) { return Response.status(Response.Status.BAD_REQUEST).build(); }
valueStrings is always of size 0.
Checklists
Acceptance criteria
Attachments
Issue Links
- depends upon
-
MGNLREST-97 Implement exception handling for rest endpoint
-
- Closed
-
- is depended upon by
-
DOCU-1205 Add examples for properties endpoint PUT/POST
-
- Closed
-
- is related to
-
DOCU-1185 properties endpoint page
-
- Closed
-