Open rgaiacs opened 4 years ago
Requires:
Create file src/rotas/collection.js, following good practices, and add:
src/rotas/collection.js
/api/v1/collections
/api/v1/collections/{slang}
Remember to write tests, see https://github.com/CRICDatabase/searchable-image-database-nodejs/pull/94, and document the endpoints in docs/rest_api/collection.rst.
docs/rest_api/collection.rst
Requires:
Create file
src/rotas/collection.js
, following good practices, and add:POST
/api/v1/collections
GET
/api/v1/collections
/api/v1/collections/{slang}
PUT
/api/v1/collections/{slang}
DELETE
/api/v1/collections/{slang}
Remember to write tests, see https://github.com/CRICDatabase/searchable-image-database-nodejs/pull/94, and document the endpoints in
docs/rest_api/collection.rst
.