关联代码库

Request method/request path

POST /ms/openapi/api/apigw/v3/repositories/{projectId}

Resource description

Associated code base

Input parameter description

Body parameter

Parameter nameParameter typemustParameter descriptionDefault value

body

is

Code base model

Path parameter

Parameter nameParameter typemustParameter descriptionDefault value

projectId

string

is

Item ID

response

HTTP codedescriptionParameter type

200

successful operation

Request sample

curl -X POST '[Please replace API address bar request address]' 

HEADER example

accept: application/json Content-Type: application/json 

Return example -200

{  "data" : {  "hashId" : "String"  },  "message" : "String",  "status" : 0 } 

Code base Model - polymorphic base class

Parameter nameParameter typemustParameter description

startPrefix

string

no

startPrefix

aliasName

string

no

aliasName

formatURL

string

no

formatURL

legal

boolean

no

legal

credentialId

string

no

credentialId

userName

string

no

userName

projectName

string

no

projectName

projectId

string

no

projectId

url

string

no

url

repoHashId

string

no

repoHashId

Data returns wrapper model code base model-ID

Parameter nameParameter typemustParameter description

data

no

data

message

string

no

Error message

status

integer

is

Status code

Code base model -ID

Parameter nameParameter typemustParameter description

hashId

string

is

Code base hash ID

Last updated