javascript - Loopback.io - Specify Request and Response Structure in Model JSON -


i'm using loopback.io build rest api , model json snippet is:

{     "name": "hcpentity",     "base": "model",     "properties": {},     "methods": {         "retrieveprofile": {             "isstatic" : true,             "accepts": [                 {                     "arg": "request",                     "type": "object",                     "required": true,                     "http": {                         "source": "body"                     }                 }             ],             "returns": {                 "arg": "response",                 "type": "object"             },             "http": {                 "verb": "post"             }         }     } } 

this works per requirement, corresponding swagger documentation describes arg values accepts , returns "inline model {}". possible have parameter structure spelled out in swagger doc?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -