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
Post a Comment