Commit 35d27fc1 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-cleanup-example-json' into 'master'

Fix malformed JSON examples in API docs

See merge request gitlab-org/gitlab!46716
parents eeb5f423 8c8b0085
...@@ -316,7 +316,6 @@ Example response: ...@@ -316,7 +316,6 @@ Example response:
{ {
"id": "8b090c1b79a14f2bd9e8a738f717824ff53aebad", "id": "8b090c1b79a14f2bd9e8a738f717824ff53aebad",
"short_id": "8b090c1b", "short_id": "8b090c1b",
"title": "Feature added",
"author_name": "Example User", "author_name": "Example User",
"author_email": "user@example.com", "author_email": "user@example.com",
"authored_date": "2016-12-12T20:10:39.000+01:00", "authored_date": "2016-12-12T20:10:39.000+01:00",
......
...@@ -266,7 +266,7 @@ Example of response ...@@ -266,7 +266,7 @@ Example of response
"status": "success", "status": "success",
"updated_at": "2016-08-11T07:43:52.143Z", "updated_at": "2016-08-11T07:43:52.143Z",
"web_url": "http://gitlab.dev/root/project/pipelines/5" "web_url": "http://gitlab.dev/root/project/pipelines/5"
} },
"runner": null "runner": null
} }
} }
......
...@@ -270,7 +270,7 @@ GET /projects/:id/snippets/:snippet_id/discussions ...@@ -270,7 +270,7 @@ GET /projects/:id/snippets/:snippet_id/discussions
"system": false, "system": false,
"noteable_id": 3, "noteable_id": 3,
"noteable_type": "Snippet", "noteable_type": "Snippet",
"noteable_id": null "noteable_iid": null
}, },
{ {
"id": 1129, "id": 1129,
...@@ -290,7 +290,7 @@ GET /projects/:id/snippets/:snippet_id/discussions ...@@ -290,7 +290,7 @@ GET /projects/:id/snippets/:snippet_id/discussions
"system": false, "system": false,
"noteable_id": 3, "noteable_id": 3,
"noteable_type": "Snippet", "noteable_type": "Snippet",
"noteable_id": null, "noteable_iid": null,
"resolvable": false "resolvable": false
} }
] ]
...@@ -317,7 +317,7 @@ GET /projects/:id/snippets/:snippet_id/discussions ...@@ -317,7 +317,7 @@ GET /projects/:id/snippets/:snippet_id/discussions
"system": false, "system": false,
"noteable_id": 3, "noteable_id": 3,
"noteable_type": "Snippet", "noteable_type": "Snippet",
"noteable_id": null, "noteable_iid": null,
"resolvable": false "resolvable": false
} }
] ]
...@@ -476,7 +476,7 @@ GET /groups/:id/epics/:epic_id/discussions ...@@ -476,7 +476,7 @@ GET /groups/:id/epics/:epic_id/discussions
"system": false, "system": false,
"noteable_id": 3, "noteable_id": 3,
"noteable_type": "Epic", "noteable_type": "Epic",
"noteable_id": null, "noteable_iid": null,
"resolvable": false "resolvable": false
}, },
{ {
...@@ -497,7 +497,7 @@ GET /groups/:id/epics/:epic_id/discussions ...@@ -497,7 +497,7 @@ GET /groups/:id/epics/:epic_id/discussions
"system": false, "system": false,
"noteable_id": 3, "noteable_id": 3,
"noteable_type": "Epic", "noteable_type": "Epic",
"noteable_id": null, "noteable_iid": null,
"resolvable": false "resolvable": false
} }
] ]
...@@ -524,7 +524,7 @@ GET /groups/:id/epics/:epic_id/discussions ...@@ -524,7 +524,7 @@ GET /groups/:id/epics/:epic_id/discussions
"system": false, "system": false,
"noteable_id": 3, "noteable_id": 3,
"noteable_type": "Epic", "noteable_type": "Epic",
"noteable_id": null, "noteable_iid": null,
"resolvable": false "resolvable": false
} }
] ]
...@@ -757,7 +757,7 @@ Diff comments also contain position: ...@@ -757,7 +757,7 @@ Diff comments also contain position:
"notes": [ "notes": [
{ {
"id": 1128, "id": 1128,
"type": DiffNote, "type": "DiffNote",
"body": "diff comment", "body": "diff comment",
"attachment": null, "attachment": null,
"author": { "author": {
...@@ -787,12 +787,12 @@ Diff comments also contain position: ...@@ -787,12 +787,12 @@ Diff comments also contain position:
"line_range": { "line_range": {
"start": { "start": {
"line_code": "588440f66559714280628a4f9799f0c4eb880a4a_10_10", "line_code": "588440f66559714280628a4f9799f0c4eb880a4a_10_10",
"type": "new", "type": "new"
}, },
"end": { "end": {
"line_code": "588440f66559714280628a4f9799f0c4eb880a4a_11_11", "line_code": "588440f66559714280628a4f9799f0c4eb880a4a_11_11",
"type": "old" "type": "old"
}, }
} }
}, },
"resolved": false, "resolved": false,
...@@ -1089,7 +1089,7 @@ Diff comments contain also position: ...@@ -1089,7 +1089,7 @@ Diff comments contain also position:
"notes": [ "notes": [
{ {
"id": 1128, "id": 1128,
"type": DiffNote, "type": "DiffNote",
"body": "diff comment", "body": "diff comment",
"attachment": null, "attachment": null,
"author": { "author": {
......
...@@ -97,7 +97,7 @@ Example response: ...@@ -97,7 +97,7 @@ Example response:
"id": 6, "id": 6,
"iid": 38, "iid": 38,
"group_id": 1, "group_id": 1,
"parent_id": 5 "parent_id": 5,
"title": "Accusamus iste et ullam ratione voluptatem omnis debitis dolor est.", "title": "Accusamus iste et ullam ratione voluptatem omnis debitis dolor est.",
"description": "Molestias dolorem eos vitae expedita impedit necessitatibus quo voluptatum.", "description": "Molestias dolorem eos vitae expedita impedit necessitatibus quo voluptatum.",
"author": { "author": {
......
...@@ -301,7 +301,7 @@ Example response: ...@@ -301,7 +301,7 @@ Example response:
```json ```json
[ [
{ {
"id": 8 "id": 8,
"title":null, "title":null,
"project_id":1, "project_id":1,
"action_name":"opened", "action_name":"opened",
......
...@@ -126,7 +126,7 @@ Example response: ...@@ -126,7 +126,7 @@ Example response:
"iid": 1, "iid": 1,
"project_id": 1, "project_id": 1,
"created_at": "2020-02-04T08:13:10.507Z", "created_at": "2020-02-04T08:13:10.507Z",
"updated_at": "2020-02-04T08:13:10.507Z", "updated_at": "2020-02-04T08:13:10.507Z"
} }
``` ```
......
...@@ -70,7 +70,7 @@ Example response: ...@@ -70,7 +70,7 @@ Example response:
"version": "new_version_flag", "version": "new_version_flag",
"created_at":"2019-11-04T08:13:10.507Z", "created_at":"2019-11-04T08:13:10.507Z",
"updated_at":"2019-11-04T08:13:10.507Z", "updated_at":"2019-11-04T08:13:10.507Z",
"scopes":[] "scopes":[],
"strategies": [ "strategies": [
{ {
"id": 2, "id": 2,
......
...@@ -362,9 +362,6 @@ Example response: ...@@ -362,9 +362,6 @@ Example response:
"wikis_checksum_mismatch_count": 1, "wikis_checksum_mismatch_count": 1,
"repositories_retrying_verification_count": 1, "repositories_retrying_verification_count": 1,
"wikis_retrying_verification_count": 3, "wikis_retrying_verification_count": 3,
"repositories_checked_count": 7,
"repositories_checked_failed_count": 2,
"repositories_checked_in_percentage": "17.07%",
"last_event_id": 23, "last_event_id": 23,
"last_event_timestamp": 1509681166, "last_event_timestamp": 1509681166,
"cursor_last_event_id": null, "cursor_last_event_id": null,
......
...@@ -192,6 +192,6 @@ Example response: ...@@ -192,6 +192,6 @@ Example response:
"link_url": "http://example.com/ci_status.svg?project=%{project_path}&ref=%{default_branch}", "link_url": "http://example.com/ci_status.svg?project=%{project_path}&ref=%{default_branch}",
"image_url": "https://shields.io/my/badge", "image_url": "https://shields.io/my/badge",
"rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master", "rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master",
"rendered_image_url": "https://shields.io/my/badge", "rendered_image_url": "https://shields.io/my/badge"
} }
``` ```
...@@ -101,7 +101,7 @@ GET /groups?statistics=true ...@@ -101,7 +101,7 @@ GET /groups?statistics=true
"lfs_objects_size" : 123, "lfs_objects_size" : 123,
"job_artifacts_size" : 57, "job_artifacts_size" : 57,
"packages_size": 0, "packages_size": 0,
"snippets_size" : 50, "snippets_size" : 50
} }
} }
] ]
......
...@@ -84,7 +84,7 @@ Example response: ...@@ -84,7 +84,7 @@ Example response:
}, },
"provider_gcp": null, "provider_gcp": null,
"management_project": null "management_project": null
} },
{ {
"id": 11, "id": 11,
"name": "cluster-3", "name": "cluster-3",
......
...@@ -117,7 +117,7 @@ Example response: ...@@ -117,7 +117,7 @@ Example response:
"due_date": null, "due_date": null,
"web_url": "http://example.com/example/example/issues/11", "web_url": "http://example.com/example/example/issues/11",
"confidential": false, "confidential": false,
"weight": null, "weight": null
}, },
"target_issue" : { "target_issue" : {
"id" : 84, "id" : 84,
...@@ -147,7 +147,7 @@ Example response: ...@@ -147,7 +147,7 @@ Example response:
"due_date": null, "due_date": null,
"web_url": "http://example.com/example/example/issues/14", "web_url": "http://example.com/example/example/issues/14",
"confidential": false, "confidential": false,
"weight": null, "weight": null
}, },
"link_type": "relates_to" "link_type": "relates_to"
} }
...@@ -198,7 +198,7 @@ DELETE /projects/:id/issues/:issue_iid/links/:issue_link_id ...@@ -198,7 +198,7 @@ DELETE /projects/:id/issues/:issue_iid/links/:issue_link_id
"due_date": null, "due_date": null,
"web_url": "http://example.com/example/example/issues/11", "web_url": "http://example.com/example/example/issues/11",
"confidential": false, "confidential": false,
"weight": null, "weight": null
}, },
"target_issue" : { "target_issue" : {
"id" : 84, "id" : 84,
...@@ -228,7 +228,7 @@ DELETE /projects/:id/issues/:issue_iid/links/:issue_link_id ...@@ -228,7 +228,7 @@ DELETE /projects/:id/issues/:issue_iid/links/:issue_link_id
"due_date": null, "due_date": null,
"web_url": "http://example.com/example/example/issues/14", "web_url": "http://example.com/example/example/issues/14",
"confidential": false, "confidential": false,
"weight": null, "weight": null
}, },
"link_type": "relates_to" "link_type": "relates_to"
} }
......
...@@ -591,83 +591,79 @@ Example response: ...@@ -591,83 +591,79 @@ Example response:
```json ```json
{ {
"id" : 1, "id": 1,
"milestone" : { "milestone": {
"due_date" : null, "due_date": null,
"project_id" : 4, "project_id": 4,
"state" : "closed", "state": "closed",
"description" : "Rerum est voluptatem provident consequuntur molestias similique ipsum dolor.", "description": "Rerum est voluptatem provident consequuntur molestias similique ipsum dolor.",
"iid" : 3, "iid": 3,
"id" : 11, "id": 11,
"title" : "v3.0", "title": "v3.0",
"created_at" : "2016-01-04T15:31:39.788Z", "created_at": "2016-01-04T15:31:39.788Z",
"updated_at" : "2016-01-04T15:31:39.788Z", "updated_at": "2016-01-04T15:31:39.788Z",
"closed_at" : "2016-01-05T15:31:46.176Z" "closed_at": "2016-01-05T15:31:46.176Z"
}, },
"author" : { "author": {
"state" : "active", "state": "active",
"web_url" : "https://gitlab.example.com/root", "web_url": "https://gitlab.example.com/root",
"avatar_url" : null, "avatar_url": null,
"username" : "root", "username": "root",
"id" : 1, "id": 1,
"name" : "Administrator" "name": "Administrator"
}, },
"description" : "Omnis vero earum sunt corporis dolor et placeat.", "description": "Omnis vero earum sunt corporis dolor et placeat.",
"state" : "closed", "state": "closed",
"iid" : 1, "iid": 1,
"assignees" : [{ "assignees": [
"avatar_url" : null, {
"web_url" : "https://gitlab.example.com/lennie", "avatar_url": null,
"state" : "active", "web_url": "https://gitlab.example.com/lennie",
"username" : "lennie", "state": "active",
"id" : 9, "username": "lennie",
"name" : "Dr. Luella Kovacek" "id": 9,
}], "name": "Dr. Luella Kovacek"
"assignee" : { }
"avatar_url" : null, ],
"web_url" : "https://gitlab.example.com/lennie", "assignee": {
"state" : "active", "avatar_url": null,
"username" : "lennie", "web_url": "https://gitlab.example.com/lennie",
"id" : 9, "state": "active",
"name" : "Dr. Luella Kovacek" "username": "lennie",
}, "id": 9,
"labels" : [], "name": "Dr. Luella Kovacek"
"upvotes": 4, },
"downvotes": 0, "labels": [],
"merge_requests_count": 0, "upvotes": 4,
"title" : "Ut commodi ullam eos dolores perferendis nihil sunt.", "downvotes": 0,
"updated_at" : "2016-01-04T15:31:46.176Z", "merge_requests_count": 0,
"created_at" : "2016-01-04T15:31:46.176Z", "title": "Ut commodi ullam eos dolores perferendis nihil sunt.",
"closed_at" : null, "updated_at": "2016-01-04T15:31:46.176Z",
"closed_by" : null, "created_at": "2016-01-04T15:31:46.176Z",
"subscribed": false, "closed_at": null,
"user_notes_count": 1, "closed_by": null,
"due_date": null, "subscribed": false,
"web_url": "http://example.com/my-group/my-project/issues/1", "user_notes_count": 1,
"references": { "due_date": null,
"short": "#1", "web_url": "http://example.com/my-group/my-project/issues/1",
"relative": "#1", "references": {
"full": "my-group/my-project#1" "short": "#1",
}, "relative": "#1",
"time_stats": { "full": "my-group/my-project#1"
"time_estimate": 0, },
"total_time_spent": 0, "time_stats": {
"human_time_estimate": null, "time_estimate": 0,
"human_total_time_spent": null "total_time_spent": 0,
}, "human_time_estimate": null,
"confidential": false, "human_total_time_spent": null
"discussion_locked": false, },
"_links": { "confidential": false,
"self": "http://example.com/api/v4/projects/1/issues/2", "discussion_locked": false,
"notes": "http://example.com/api/v4/projects/1/issues/2/notes", "task_completion_status": {
"award_emoji": "http://example.com/api/v4/projects/1/issues/2/award_emoji", "count": 0,
"project": "http://example.com/api/v4/projects/1" "completed_count": 0
}, },
"task_completion_status":{ "weight": null,
"count":0,
"completed_count":0
},
"weight": null,
"has_tasks": false, "has_tasks": false,
"_links": { "_links": {
"self": "http://gitlab.example:3000/api/v4/projects/1/issues/1", "self": "http://gitlab.example:3000/api/v4/projects/1/issues/1",
...@@ -675,12 +671,6 @@ Example response: ...@@ -675,12 +671,6 @@ Example response:
"award_emoji": "http://gitlab.example:3000/api/v4/projects/1/issues/1/award_emoji", "award_emoji": "http://gitlab.example:3000/api/v4/projects/1/issues/1/award_emoji",
"project": "http://gitlab.example:3000/api/v4/projects/1" "project": "http://gitlab.example:3000/api/v4/projects/1"
}, },
"references": {
"short": "#1",
"relative": "#1",
"full": "gitlab-org/gitlab-test#1"
},
"subscribed": true,
"moved_to_id": null, "moved_to_id": null,
"service_desk_reply_to": "service.desk@gitlab.com", "service_desk_reply_to": "service.desk@gitlab.com",
"epic_iid": null, "epic_iid": null,
......
...@@ -68,7 +68,6 @@ Example of response ...@@ -68,7 +68,6 @@ Example of response
"status": "pending" "status": "pending"
}, },
"ref": "master", "ref": "master",
"artifacts": [],
"runner": null, "runner": null,
"stage": "test", "stage": "test",
"status": "failed", "status": "failed",
......
...@@ -31,7 +31,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a ...@@ -31,7 +31,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a
"title": "Sample key 25", "title": "Sample key 25",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=", "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
"created_at": "2015-09-03T07:24:44.627Z", "created_at": "2015-09-03T07:24:44.627Z",
"expires_at": "2020-05-05T00:00:00.000Z" "expires_at": "2020-05-05T00:00:00.000Z",
"user": { "user": {
"name": "John Smith", "name": "John Smith",
"username": "john_smith", "username": "john_smith",
...@@ -59,7 +59,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a ...@@ -59,7 +59,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a
"identities": [], "identities": [],
"can_create_group": true, "can_create_group": true,
"can_create_project": true, "can_create_project": true,
"two_factor_enabled": false "two_factor_enabled": false,
"external": false, "external": false,
"private_profile": null "private_profile": null
} }
...@@ -100,7 +100,7 @@ Example response: ...@@ -100,7 +100,7 @@ Example response:
"title": "Sample key 1", "title": "Sample key 1",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1016k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=", "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1016k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
"created_at": "2019-11-14T15:11:13.222Z", "created_at": "2019-11-14T15:11:13.222Z",
"expires_at": "2020-05-05T00:00:00.000Z" "expires_at": "2020-05-05T00:00:00.000Z",
"user": { "user": {
"id": 1, "id": 1,
"name": "Administrator", "name": "Administrator",
......
...@@ -80,7 +80,7 @@ GET /licenses ...@@ -80,7 +80,7 @@ GET /licenses
"Name": "Doe John" "Name": "Doe John"
}, },
"add_ons": { "add_ons": {
"GitLab_FileLocks": 1, "GitLab_FileLocks": 1
} }
} }
] ]
......
...@@ -136,7 +136,7 @@ Example response: ...@@ -136,7 +136,7 @@ Example response:
"avatar_url": "https://www.gravatar.com/avatar/c2525a7f58ae3776070e44c106c48e15?s=80&d=identicon", "avatar_url": "https://www.gravatar.com/avatar/c2525a7f58ae3776070e44c106c48e15?s=80&d=identicon",
"web_url": "http://192.168.1.8:3000/root", "web_url": "http://192.168.1.8:3000/root",
"expires_at": "2012-10-22T14:13:35Z", "expires_at": "2012-10-22T14:13:35Z",
"access_level": 30 "access_level": 30,
"email": "john@example.com", "email": "john@example.com",
"group_saml_identity": { "group_saml_identity": {
"extern_uid":"ABC-1234567890", "extern_uid":"ABC-1234567890",
......
...@@ -664,7 +664,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/approvals ...@@ -664,7 +664,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/approvals
"web_url": "http://localhost:3000/root" "web_url": "http://localhost:3000/root"
} }
} }
], ]
} }
``` ```
...@@ -1109,7 +1109,7 @@ does not match, the response code is `409`. ...@@ -1109,7 +1109,7 @@ does not match, the response code is `409`.
"web_url": "http://localhost:3000/ryley" "web_url": "http://localhost:3000/ryley"
} }
} }
], ]
} }
``` ```
......
...@@ -2319,7 +2319,7 @@ Example response: ...@@ -2319,7 +2319,7 @@ Example response:
"short": "!1", "short": "!1",
"relative": "!1", "relative": "!1",
"full": "my-group/my-project!1" "full": "my-group/my-project!1"
}, }
}, },
"target_url": "https://gitlab.example.com/gitlab-org/gitlab-ci/merge_requests/7", "target_url": "https://gitlab.example.com/gitlab-org/gitlab-ci/merge_requests/7",
"body": "Et voluptas laudantium minus nihil recusandae ut accusamus earum aut non.", "body": "Et voluptas laudantium minus nihil recusandae ut accusamus earum aut non.",
......
...@@ -176,7 +176,9 @@ Example responses: ...@@ -176,7 +176,9 @@ Example responses:
{ {
"level": "watch" "level": "watch"
} }
```
```json
{ {
"level": "custom", "level": "custom",
"events": { "events": {
......
...@@ -370,8 +370,8 @@ curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" --form "value=u ...@@ -370,8 +370,8 @@ curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" --form "value=u
```json ```json
{ {
"key": "NEW_VARIABLE", "key": "NEW_VARIABLE",
"value": "updated value" "value": "updated value",
"variable_type": "env_var", "variable_type": "env_var"
} }
``` ```
......
...@@ -60,7 +60,7 @@ Example of response ...@@ -60,7 +60,7 @@ Example of response
"sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a", "sha": "a91957a858320c0e17f3a0eca7cfacbff50ea29a",
"web_url": "https://example.com/foo/bar/pipelines/47", "web_url": "https://example.com/foo/bar/pipelines/47",
"created_at": "2016-08-11T11:28:34.085Z", "created_at": "2016-08-11T11:28:34.085Z",
"updated_at": "2016-08-11T11:32:35.169Z", "updated_at": "2016-08-11T11:32:35.169Z"
}, },
{ {
"id": 48, "id": 48,
...@@ -70,7 +70,7 @@ Example of response ...@@ -70,7 +70,7 @@ Example of response
"sha": "eb94b618fb5865b26e80fdd8ae531b7a63ad851a", "sha": "eb94b618fb5865b26e80fdd8ae531b7a63ad851a",
"web_url": "https://example.com/foo/bar/pipelines/48", "web_url": "https://example.com/foo/bar/pipelines/48",
"created_at": "2016-08-12T10:06:04.561Z", "created_at": "2016-08-12T10:06:04.561Z",
"updated_at": "2016-08-12T10:09:56.223Z", "updated_at": "2016-08-12T10:09:56.223Z"
} }
] ]
``` ```
......
...@@ -59,7 +59,7 @@ Example response: ...@@ -59,7 +59,7 @@ Example response:
"rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master", "rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master",
"rendered_image_url": "https://shields.io/my/badge", "rendered_image_url": "https://shields.io/my/badge",
"kind": "group" "kind": "group"
}, }
] ]
``` ```
...@@ -202,6 +202,6 @@ Example response: ...@@ -202,6 +202,6 @@ Example response:
"link_url": "http://example.com/ci_status.svg?project=%{project_path}&ref=%{default_branch}", "link_url": "http://example.com/ci_status.svg?project=%{project_path}&ref=%{default_branch}",
"image_url": "https://shields.io/my/badge", "image_url": "https://shields.io/my/badge",
"rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master", "rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master",
"rendered_image_url": "https://shields.io/my/badge", "rendered_image_url": "https://shields.io/my/badge"
} }
``` ```
...@@ -104,7 +104,7 @@ an email notifying the user to download the file, uploading the exported file to ...@@ -104,7 +104,7 @@ an email notifying the user to download the file, uploading the exported file to
"export_status": "finished", "export_status": "finished",
"_links": { "_links": {
"api_url": "https://gitlab.example.com/api/v4/projects/1/export/download", "api_url": "https://gitlab.example.com/api/v4/projects/1/export/download",
"web_url": "https://gitlab.example.com/gitlab-org/gitlab-test/download_export", "web_url": "https://gitlab.example.com/gitlab-org/gitlab-test/download_export"
} }
} }
``` ```
......
...@@ -68,6 +68,7 @@ Example response: ...@@ -68,6 +68,7 @@ Example response:
"path": "project1", "path": "project1",
"path_with_namespace": "namespace1/project1", "path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z" "created_at": "2020-05-07T04:27:17.016Z"
}
} }
] ]
``` ```
...@@ -111,6 +112,7 @@ Example response: ...@@ -111,6 +112,7 @@ Example response:
"path": "project1", "path": "project1",
"path_with_namespace": "namespace1/project1", "path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z" "created_at": "2020-05-07T04:27:17.016Z"
}
} }
] ]
``` ```
...@@ -150,6 +152,7 @@ Example response: ...@@ -150,6 +152,7 @@ Example response:
"path": "project1", "path": "project1",
"path_with_namespace": "namespace1/project1", "path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z" "created_at": "2020-05-07T04:27:17.016Z"
}
} }
``` ```
...@@ -189,6 +192,7 @@ Example response: ...@@ -189,6 +192,7 @@ Example response:
"path": "project1", "path": "project1",
"path_with_namespace": "namespace1/project1", "path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z" "created_at": "2020-05-07T04:27:17.016Z"
}
} }
``` ```
...@@ -237,6 +241,7 @@ Example response: ...@@ -237,6 +241,7 @@ Example response:
"path": "project1", "path": "project1",
"path_with_namespace": "namespace1/project1", "path_with_namespace": "namespace1/project1",
"created_at": "2020-05-07T04:27:17.016Z" "created_at": "2020-05-07T04:27:17.016Z"
}
} }
``` ```
......
...@@ -114,7 +114,7 @@ curl --request POST "https://gitlab.com/api/v4/projects/:id/snippets" \ ...@@ -114,7 +114,7 @@ curl --request POST "https://gitlab.com/api/v4/projects/:id/snippets" \
"files": [ "files": [
{ {
"file_path": "example.txt", "file_path": "example.txt",
"content" : "source code \n with multiple lines\n", "content" : "source code \n with multiple lines\n"
} }
] ]
} }
......
...@@ -94,7 +94,7 @@ When `simple=true` or the user is unauthenticated this returns something like: ...@@ -94,7 +94,7 @@ When `simple=true` or the user is unauthenticated this returns something like:
"last_activity_at": "2013-09-30T13:46:02Z", "last_activity_at": "2013-09-30T13:46:02Z",
"forks_count": 0, "forks_count": 0,
"avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png", "avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png",
"star_count": 0, "star_count": 0
}, },
{ {
"id": 6, "id": 6,
...@@ -189,7 +189,7 @@ When the user is authenticated and `simple` is not set this returns something li ...@@ -189,7 +189,7 @@ When the user is authenticated and `simple` is not set this returns something li
"labels": "http://example.com/api/v4/projects/1/labels", "labels": "http://example.com/api/v4/projects/1/labels",
"events": "http://example.com/api/v4/projects/1/events", "events": "http://example.com/api/v4/projects/1/events",
"members": "http://example.com/api/v4/projects/1/members" "members": "http://example.com/api/v4/projects/1/members"
}, }
}, },
{ {
"id": 6, "id": 6,
...@@ -902,7 +902,6 @@ GET /projects/:id ...@@ -902,7 +902,6 @@ GET /projects/:id
"merge_method": "merge", "merge_method": "merge",
"auto_devops_enabled": true, "auto_devops_enabled": true,
"auto_devops_deploy_strategy": "continuous", "auto_devops_deploy_strategy": "continuous",
"repository_storage": "default",
"approvals_before_merge": 0, "approvals_before_merge": 0,
"mirror": false, "mirror": false,
"mirror_user_id": 45, "mirror_user_id": 45,
...@@ -986,7 +985,7 @@ If the project is a fork, and you provide a valid token to authenticate, the ...@@ -986,7 +985,7 @@ If the project is a fork, and you provide a valid token to authenticate, the
"name": "MIT License", "name": "MIT License",
"nickname": null, "nickname": null,
"html_url": "http://choosealicense.com/licenses/mit/", "html_url": "http://choosealicense.com/licenses/mit/",
"source_url": "https://opensource.org/licenses/MIT", "source_url": "https://opensource.org/licenses/MIT"
}, },
"star_count":3812, "star_count":3812,
"forks_count":3561, "forks_count":3561,
...@@ -1661,26 +1660,26 @@ Example responses: ...@@ -1661,26 +1660,26 @@ Example responses:
[ [
{ {
"starred_since": "2019-01-28T14:47:30.642Z", "starred_since": "2019-01-28T14:47:30.642Z",
"user": "user": {
{
"id": 1, "id": 1,
"username": "jane_smith", "username": "jane_smith",
"name": "Jane Smith", "name": "Jane Smith",
"state": "active", "state": "active",
"avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg", "avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg",
"web_url": "http://localhost:3000/jane_smith" "web_url": "http://localhost:3000/jane_smith"
} }
}, },
{
"starred_since": "2018-01-02T11:40:26.570Z", "starred_since": "2018-01-02T11:40:26.570Z",
"user": "user": {
{ "id": 2,
"id": 2, "username": "janine_smith",
"username": "janine_smith", "name": "Janine Smith",
"name": "Janine Smith", "state": "blocked",
"state": "blocked", "avatar_url": "http://gravatar.com/../e32131cd8.jpeg",
"avatar_url": "http://gravatar.com/../e32131cd8.jpeg", "web_url": "http://localhost:3000/janine_smith"
"web_url": "http://localhost:3000/janine_smith" }
} }
] ]
``` ```
......
...@@ -144,9 +144,9 @@ Example response: ...@@ -144,9 +144,9 @@ Example response:
}, },
"evidences":[ "evidences":[
{ {
sha: "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d", "sha": "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d",
filepath: "https://gitlab.example.com/root/awesome-app/-/releases/v0.2/evidence.json", "filepath": "https://gitlab.example.com/root/awesome-app/-/releases/v0.2/evidence.json",
collected_at: "2019-01-03T01:56:19.539Z" "collected_at": "2019-01-03T01:56:19.539Z"
} }
] ]
}, },
...@@ -208,9 +208,9 @@ Example response: ...@@ -208,9 +208,9 @@ Example response:
}, },
"evidences":[ "evidences":[
{ {
sha: "c3ffedec13af470e760d6cdfb08790f71cf52c6cde4d", "sha": "c3ffedec13af470e760d6cdfb08790f71cf52c6cde4d",
filepath: "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json", "filepath": "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json",
collected_at: "2019-01-03T01:55:18.203Z" "collected_at": "2019-01-03T01:55:18.203Z"
} }
] ]
} }
...@@ -340,9 +340,9 @@ Example response: ...@@ -340,9 +340,9 @@ Example response:
}, },
"evidences":[ "evidences":[
{ {
sha: "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d", "sha": "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d",
filepath: "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json", "filepath": "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json",
collected_at: "2019-07-16T14:00:12.256Z" "collected_at": "2019-07-16T14:00:12.256Z"
} }
] ]
} }
...@@ -482,7 +482,7 @@ Example response: ...@@ -482,7 +482,7 @@ Example response:
} }
], ],
"evidence_file_path":"https://gitlab.example.com/root/awesome-app/-/releases/v0.3/evidence.json" "evidence_file_path":"https://gitlab.example.com/root/awesome-app/-/releases/v0.3/evidence.json"
}, }
} }
``` ```
...@@ -625,7 +625,7 @@ Example response: ...@@ -625,7 +625,7 @@ Example response:
], ],
"evidence_file_path":"https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json" "evidence_file_path":"https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json"
}, }
} }
``` ```
...@@ -709,7 +709,7 @@ Example response: ...@@ -709,7 +709,7 @@ Example response:
], ],
"evidence_file_path":"https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json" "evidence_file_path":"https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json"
}, }
} }
``` ```
......
...@@ -126,7 +126,7 @@ Example response: ...@@ -126,7 +126,7 @@ Example response:
"ip_address": "127.0.0.1", "ip_address": "127.0.0.1",
"is_shared": true, "is_shared": true,
"name": null, "name": null,
"online": false "online": false,
"status": "offline" "status": "offline"
}, },
{ {
...@@ -136,7 +136,7 @@ Example response: ...@@ -136,7 +136,7 @@ Example response:
"ip_address": "127.0.0.1", "ip_address": "127.0.0.1",
"is_shared": false, "is_shared": false,
"name": null, "name": null,
"online": true "online": true,
"status": "paused" "status": "paused"
}, },
{ {
...@@ -428,7 +428,7 @@ Example response: ...@@ -428,7 +428,7 @@ Example response:
"ip_address": "127.0.0.1", "ip_address": "127.0.0.1",
"is_shared": true, "is_shared": true,
"name": null, "name": null,
"online": true "online": true,
"status": "paused" "status": "paused"
} }
] ]
......
...@@ -42,7 +42,7 @@ Example response: ...@@ -42,7 +42,7 @@ Example response:
"wiki_page_events": true, "wiki_page_events": true,
"job_events": true, "job_events": true,
"comment_on_event_enabled": true "comment_on_event_enabled": true
} },
{ {
"id": 76, "id": 76,
"title": "Alerts endpoint", "title": "Alerts endpoint",
......
...@@ -1762,6 +1762,6 @@ Example response: ...@@ -1762,6 +1762,6 @@ Example response:
"source_name": "Group three", "source_name": "Group three",
"source_type": "Namespace", "source_type": "Namespace",
"access_level": "20" "access_level": "20"
}, }
] ]
``` ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment