Template Service - API Calls


Http VerbMethod PathParameterDescription
GET/template/{id}Template IDGet the template with id:id
GET/user/{id}/templatesUser IDGet all the templates from a user with id:id
POST/template/new
  • title.
  • body.
  • user_id

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

  • title
  • body
  • user_id
Replace the template with id:id , usually to modify title or body.
DELETE/template/{id}Template IDRemove from database the template with id:id.