Obtaining a Repository Namespace
Function
This API is used to obtain a repository namespace.
The request header parameter X-Repo-Auth needs to be added for this API. Its value is the name of the OAuth authorization created in Creating OAuth Authorization.
Request
Request parameters
None
Response
Response parameters
| Parameter | Type | Description |
|---|---|---|
| namespaces | Array<Object> | Namespace struct. For details, see Table 3. |
Example
Example request
None
Example response
{
"namespaces": [
{
"id": "string",
"name": "string"
}
]
} Status Code
| HTTP Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
Error code must be in the format of SVCSTG.REPO.[Error_ID]. Example: SVCSTG.REPO.0401. See ServiceStage Error Codes.
Last Article: Deleting Repository Authorization
Next Article: Obtaining Repository Information Based on the Clone URL
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.