Querying Authorized APIs of an App
Description
This API is used to query the list of APIs that have been authorized to an app.
URI
- URI format
GET /v1/{project_id}/service/authorize/apps/{app_id}[?offset,limit]
- Parameter description
Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID. For details about how to obtain the project ID, see Project ID and Account ID.
app_id
Yes
String
App ID
offset
No
Integer
Query start coordinate, that is, skipping the first X records. The value can only be 0 or an integer multiple of limit. If the requirement is not met, the value is rounded down. The default value is 0. The value range is [0, MAX_INTEGER).
limit
No
Integer
Number of records to be queried, that is, Y records. The default value is 100. The value range is [1, 100].
Response
- Example response
{ "total": 1, "records": [ { "id": "2342936b7862317d0a81bfcfb657f243", "name": "testApi", "description": "test api", "approval_time": 1578897421000, "manager": "admin", "deadline": 1580452617000 } ] }
- Response parameter description
Parameter
Type
Description
total
Integer
Number of APIs that match the query conditions
records
Dictionary
APIs that are returned
- records parameter description
Parameter
Type
Description
id
String
API ID
name
String
API name
description
String
API description
approval_time
Long
Authorization time, which is a 13-digit timestamp
manager
String
Reviewer
deadline
Long
Expiry time of using the API, which is a 13-digit timestamp
- records parameter description
Status Code
Status Code |
Description |
---|---|
200 |
The APIs that have been authorized to the app are obtained. |
For details about status codes, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.