Skip to content

kanomdook/nodejs-chat-service

Repository files navigation

Routes

  • [GET] "/api/[Model Name]"

      Output {
      	   status:Number,
      	   data:Array[Object] 
      }
    
  • [POST] "/api/[Model Name]"

      Input {
      	   name:String        
      }
    
      Output {
      	   status:Number,
      	   data:Object 
      }
    
  • [PUT] "/api/[Model Name]/[id]"

      Input {
      	   name:String        
      }
    
      Output {
      	   status:Number,
      	   data:Object 
      }
    
  • [DELETE] "/api/[Model Name]/[id]"

      Output {
      	   status:Number,
      	   data:Object 
      }