Right now the /create endpoint takes a json object with a 2-element array. The 1st element is a json object containing public fields, and the 2nd element is another json object containing private fields.
The rest of the entry's info is in the query string.
This issue is blocked by https://github.com/serokell/coffer/pull/37.
Clarification and motivation
Right now the
/create
endpoint takes a json object with a 2-element array. The 1st element is a json object containing public fields, and the 2nd element is another json object containing private fields.The rest of the entry's info is in the query string.
Example:
Instead, the endpoint should accept a json object representing the entire "Entry" entity, e.g.
Acceptance criteria
/create
endpoint accepts a json object representing the "Entry" entity