You can call the ListMethods operation to query a list of service methods.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadService |
get |
*Application
|
None | None |
Request syntax
GET /pop/v5/service/list_methods HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the application. |
be213a4a-c7e4-473b-ab0**** |
| ServiceName |
string |
Yes |
The name of the service. |
Method |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The ID of the request. |
69AD2AA7-DB47-449B-941B-B14409DF**** |
| ServiceMethodList |
object |
||
| ServiceMethod |
array<object> |
The list of returned service methods. |
|
|
array<object> |
|||
| MethodName |
string |
The name of the method. |
echo |
| AppName |
string |
The name of the application. |
App |
| Output |
string |
The return type of the method. |
java.lang.string |
| ServiceName |
string |
The name of the service. |
com.alibaba.edas.demo.EchoService |
| ParamTypes |
object |
||
| ParamType |
array |
The data types of the input parameters of the method. |
|
|
string |
string |
||
| InputParams |
object |
||
| InputParam |
array |
The input parameters of the method. |
|
|
string |
test |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
"ServiceMethodList": {
"ServiceMethod": [
{
"MethodName": "echo",
"AppName": "App",
"Output": "java.lang.string",
"ServiceName": "com.alibaba.edas.demo.EchoService",
"ParamTypes": {
"ParamType": [
"string"
]
},
"InputParams": {
"InputParam": [
"test"
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.