diff options
author | Travis Miller <travis@travismiller.com> | 2017-12-05 22:27:45 -0600 |
---|---|---|
committer | Travis Miller <travis@travismiller.com> | 2018-02-28 20:47:36 -0600 |
commit | 0bf6ed2e367a5f110405336880f33443c47848f2 (patch) | |
tree | fde30dd7cd8dc95ff5f00d41c66ca951b793ec0c | |
parent | 812a2c193b8c92e9bd5e640e806df9cbe929e9d6 (diff) | |
download | gitlab-ce-0bf6ed2e367a5f110405336880f33443c47848f2.tar.gz |
Add project export API schema
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/project/export_status.json | 17 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/project/identity.json | 21 |
2 files changed, 38 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/public_api/v4/project/export_status.json b/spec/fixtures/api/schemas/public_api/v4/project/export_status.json new file mode 100644 index 00000000000..d24a6f93f4b --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/project/export_status.json @@ -0,0 +1,17 @@ +{ + "type": "object", + "allOf": [ + { "$ref": "identity.json" }, + { + "required": [ + "export_status" + ], + "properties": { + "export_status": { + "type": "string", + "enum": ["none", "started", "finished"] + } + } + } + ] +} diff --git a/spec/fixtures/api/schemas/public_api/v4/project/identity.json b/spec/fixtures/api/schemas/public_api/v4/project/identity.json new file mode 100644 index 00000000000..e35ab023d44 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/project/identity.json @@ -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" } + } +} |