Details
-
Type:
Story
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: 6.2.0 CE M4
-
Fix Version/s: 6.2.0 CE M4
-
Component/s: API, API > Portal Service
-
Labels:None
-
Epic/Theme:
-
Story Points:3
-
Similar Issues:
Description
Similar to the concept of WSDL, lets add json-based document for describing all api services.
this can be invoked like:
/api/jsonws?list
or to narrow down the list to certain service(s):
/api/jsonws?list=/dlapp/*,/user/*
This would also help to automatically build the clients.

Current example of discovery document:
{ "context": "/batman-portlet", "basePath": "/api/jsonws", "baseUrl": "http://localhost:8080/batman-portlet/api/jsonws", "methods": { "/batasset/call1": { "path": "/batasset/call1", "parameters": { "id": "long", "value": "string" }, "httpMethod": "POST", "response": "void" }, "/batasset/hello": { "path": "/batasset/hello", "parameters": { }, "httpMethod": "POST", "response": "void" }, "/batasset/invoke-method": { "path": "/batasset/invoke-method", "parameters": { "name": "string", "parameterTypes": "string[]", "arguments": "object[]" }, "httpMethod": "POST", "response": "object" } } }