feat/multi-page
dev
This PR adds the following endpoints:
POST /svg/{id}/page --> multipart/form-data files: svg files to add as pages <--
[ { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 8, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] } ]
DELETE /svg/{id}/page/{page} (deletes the specified page)
GET /svg <--
[ { "Id": "f097690725df43fb9700114a3542e3b4", "Name": "test", "Pages": [ { "TemplateId": "f097690725df43fb9700114a3542e3b4", "Page": 1, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "f097690725df43fb9700114a3542e3b4", "Page": 2, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "f097690725df43fb9700114a3542e3b4", "Page": 3, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] } ] }, { "Id": "273ece6325ec019cb6cc4d3cfeca156e", "Name": "test", "Pages": [ { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 1, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 2, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 3, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 4, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 5, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 6, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 7, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 8, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] } ] } ]
GET /svg/{id} <--
{ "Urls": [ "http://127.0.0.1:3000/public/793109915-1.svg", "http://127.0.0.1:3000/public/1034749377-2.svg", "http://127.0.0.1:3000/public/125236797-3.svg" ] }
POST /svg --> multipart/form-data files: svg files to add <--
{ "Id": "273ece6325ec019cb6cc4d3cfeca156e", "Name": "test", "Pages": [ { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 1, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 2, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] }, { "TemplateId": "273ece6325ec019cb6cc4d3cfeca156e", "Page": 3, "TemplateKeys": [ "VIOLA", "OLIVIA", "ORSINO" ] } ] }
closes #12
No dependencies set.
The note is not visible to the blocked user.
This PR adds the following endpoints:
POST /svg/{id}/page
-->
multipart/form-data
files: svg files to add as pages
<--
DELETE /svg/{id}/page/{page} (deletes the specified page)
This also changes some existing endpoints
GET /svg
<--
GET /svg/{id}
<--
POST /svg
-->
multipart/form-data
files: svg files to add
<--
closes #12