/API-skeleton

Show a good skeleton for create and manage a API service.

Primary LanguageJavaScript

Nodejs skeleton API

Sample application to demonstrate how to develop an API service

Steps to start the application

HOW TO USE API ASSIGNMENT

Parameters (required)

  • student ID
  • assignment ID
  • assignment type
  • assignment-content

HOW TO DEPLOY APP IN HEROKU

  • heroku create
  • git push heroku master
  • heroku ps:scale web=1
  • heroku open

HOW TO RUN TEST CASES

  • npm test

URLs

  • leggere tutti gli assignment (GET - /assignment)
  • leggere tutti gli assignment di uno student ID (GET - /assignment?studentid=:id)
  • leggere uno specifico assignment (GET - /assignment/:id)
  • consegnare un assignment (POST - /assignment/)
  • modificare assignment (PUT - /assignment/:id)
  • rimuovere assignment (DELETE - /assignment/:id)

More details Read Apiary documentation in https://assignmentapi1.docs.apiary.io/