Queries service methods.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see the topic about common request parameters.

Request syntax

GET /pop/v5/service/list_methods HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes be213a4a-c7e4-473b-ab0****

The ID of the application.

ServiceName String Query Yes Method

The name of the service.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The returned message that indicates whether the request is successful.

RequestId String 69AD2AA7-DB47-449B-941B-B14409DF****

The ID of the request.

ServiceMethodList Array of ServiceMethod

The list of service methods returned.

ServiceMethod
AppName String App

The name of the application.

InputParams List test

The input parameters of the service method.

MethodName String echo

The name of the service method.

Output String java.lang.string

The return type of the service method.

ParamTypes List string

The types of the input parameters of the service method.

ServiceName String com.alibaba.edas.demo.EchoService

The name of the service.

Examples

Sample requests

GET /pop/v5/service/list_methods HTTP/1.1
Common request headers
{
"AppId": "be213a4a-c7e4-473b-ab0****",
"ServiceName": "Method"
}

Sample success responses

XML format

<ListMethodsResopnse>
  <RequestId>69AD2AA7-DB47-449B-941B-B14409DF****</RequestId>
  <Message>success</Message>
  <ServiceMethodList>
        <ServiceMethod>
              <ServiceName>com.alibaba.edas.demo.EchoService</ServiceName>
              <Output>java.lang.string</Output>
              <MethodName>echo</MethodName>
              <AppName>App</AppName>
              <InputParams>
                    <InputParam>test</InputParam>
              </InputParams>
              <ParamTypes>
                    <ParamType>string</ParamType>
              </ParamTypes>
        </ServiceMethod>
  </ServiceMethodList>
  <Code>200</Code>
</ListMethodsResopnse>

JSON format

{
    "RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
    "Message": "success",
    "ServiceMethodList": {
        "ServiceMethod": {
            "ServiceName": "com.alibaba.edas.demo.EchoService",
            "Output": "java.lang.string",
            "MethodName": "echo",
            "AppName": "App",
            "InputParams": {
                "InputParam": "test"
            },
            "ParamTypes": {
                "ParamType": "string"
            }
        }
    },
    "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.