Add project export API schema
This commit is contained in:
parent
812a2c193b
commit
0bf6ed2e36
2 changed files with 38 additions and 0 deletions
17
spec/fixtures/api/schemas/public_api/v4/project/export_status.json
vendored
Normal file
17
spec/fixtures/api/schemas/public_api/v4/project/export_status.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{ "$ref": "identity.json" },
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"export_status"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"export_status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["none", "started", "finished"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
21
spec/fixtures/api/schemas/public_api/v4/project/identity.json
vendored
Normal file
21
spec/fixtures/api/schemas/public_api/v4/project/identity.json
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"id",
|
||||||
|
"description",
|
||||||
|
"name",
|
||||||
|
"name_with_namespace",
|
||||||
|
"path",
|
||||||
|
"path_with_namespace",
|
||||||
|
"created_at"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": { "type": "integer" },
|
||||||
|
"description": { "type": ["string", "null"] },
|
||||||
|
"name": { "type": "string" },
|
||||||
|
"name_with_namespace": { "type": "string" },
|
||||||
|
"path": { "type": "string" },
|
||||||
|
"path_with_namespace": { "type": "string" },
|
||||||
|
"created_at": { "type": "date" }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue