- 主要流程
- codeZone
- codeZoneResource
- codeZoneMiddleware
- codeZoneSnapshot
- unitTest
- git-codeZone
- docker
- git-docker
- unitTestFramework
- environment
- middleware
- playground
- git-playground
- playgroundUnitTest
- DiskResource
- URLResource
- ticket
- playgroundMiddleware
- nix
- file
- mq
- IDE Server
创建codeZone
POST
/api/v1/sdk/codeZones
codeZone
请求参数
Header 参数
tenantCode
string
租户code
默认值:
demo
userId
string
租户系统用户Id
默认值:
2
nonce
string
必需
默认值:
{{nonce}}
timestamp
string
必需
默认值:
{{timestamp}}
token
string
必需
默认值:
{{token}}
Body 参数application/json
cpu
integer <int32>
cpu
environmentVerCode
string
环境自定义编号
environmentVerId
string
环境编码
memory
integer <int32>
memory
purpose
string
可选
unitTestFrameworkId
string
测试框架Id
示例
{
"cpu": 0,
"environmentVerCode": "string",
"environmentVerId": "string",
"memory": 0,
"purpose": "string",
"unitTestFrameworkId": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/sdk/codeZones' \
--header 'tenantCode;' \
--header 'userId;' \
--header 'nonce;' \
--header 'timestamp;' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"cpu": 0,
"environmentVerCode": "string",
"environmentVerId": "string",
"memory": 0,
"purpose": "string",
"unitTestFrameworkId": "string"
}'
返回响应
🟢200OK
application/json
Body
data
object (ResultIdDTO)
可选
id
string
id
errors
array[object (ResultError) {3}]
异常信息
errcode
string
异常编码
errmsg
string
异常消息
field
string
可选
status
enum<string>
可选
枚举值:
failuresuccess
timestamp
string <date-time>
可选
示例
{
"data": {
"id": "string"
},
"errors": [
{
"errcode": "string",
"errmsg": "string",
"field": "string"
}
],
"status": "failure",
"timestamp": "2019-08-24T14:15:22Z"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2025-05-23 13:47:39