Template Service - API Calls
Http Verb | Method Path | Parameter | Description |
---|---|---|---|
GET | /template/{id} | Template ID | Get the template with id:id |
GET | /user/{id}/templates | User ID | Get all the templates from a user with id:id |
POST | /template/new |
| Create a new template designed by a user with user_id:user_id and store it in Mongo with a newly generated id for the template. |
PUT | /template/{id} | Template ID
| Replace the template with id:id , usually to modify title or body. |
DELETE | /template/{id} | Template ID | Remove from database the template with id:id. |