-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeclimate.opencollection.json
More file actions
131 lines (131 loc) · 4.99 KB
/
Copy pathcodeclimate.opencollection.json
File metadata and controls
131 lines (131 loc) · 4.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"opencollection": "1.0.0",
"info": {
"name": "Code Climate Quality API",
"version": "v1"
},
"request": {
"auth": {
"type": "apikey",
"in": "header",
"key": "Authorization",
"value": "Token token={{token}}"
}
},
"items": [
{
"info": {
"name": "Organizations",
"type": "folder"
},
"items": [
{
"info": { "name": "Get the authenticated user", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/user" },
"docs": "Returns the user associated with the supplied access token."
},
{
"info": { "name": "List organizations", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/orgs" },
"docs": "Lists the organizations the authenticated user belongs to."
}
]
},
{
"info": {
"name": "Repositories",
"type": "folder"
},
"items": [
{
"info": { "name": "List repositories in an organization", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/orgs/{{org_id}}/repos" },
"docs": "Lists repositories under an organization."
},
{
"info": { "name": "Add a private repository", "type": "http" },
"http": {
"method": "POST",
"url": "https://api.codeclimate.com/v1/orgs/{{org_id}}/repos",
"body": { "type": "json", "data": "{\"data\":{\"type\":\"repos\",\"attributes\":{\"url\":\"https://github.com/owner/name\"}}}" }
},
"docs": "Adds a private repository to an organization."
},
{
"info": { "name": "Update a repository", "type": "http" },
"http": {
"method": "PUT",
"url": "https://api.codeclimate.com/v1/orgs/{{org_id}}/repos/{{repo_id}}",
"body": { "type": "json", "data": "{\"data\":{\"type\":\"repos\",\"attributes\":{}}}" }
},
"docs": "Updates a repository."
},
{
"info": { "name": "Look up a repository by GitHub slug", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos?github_slug=owner/name" },
"docs": "Looks up a repository by GitHub slug (owner/name)."
},
{
"info": { "name": "Get a repository", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}" },
"docs": "Returns a single repository."
},
{
"info": { "name": "List services on a repository", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/services" },
"docs": "Lists services configured on a repository."
}
]
},
{
"info": {
"name": "Snapshots",
"type": "folder"
},
"items": [
{
"info": { "name": "Get a snapshot", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/snapshots/{{snapshot_id}}" },
"docs": "Returns a repository analysis snapshot."
},
{
"info": { "name": "List issues in a snapshot", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/snapshots/{{snapshot_id}}/issues" },
"docs": "Lists the code quality issues contained in a snapshot."
}
]
},
{
"info": {
"name": "Test Coverage",
"type": "folder"
},
"items": [
{
"info": { "name": "List test reports", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/test_reports" },
"docs": "Lists test reports for a repository."
},
{
"info": { "name": "Get a test report", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/test_reports/{{test_report_id}}" },
"docs": "Returns a single test report."
},
{
"info": { "name": "List test file reports", "type": "http" },
"http": { "method": "GET", "url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/test_reports/{{test_report_id}}/test_file_reports" },
"docs": "Lists per-file test coverage reports for a test report."
},
{
"info": { "name": "Create a batch of test file reports", "type": "http" },
"http": {
"method": "POST",
"url": "https://api.codeclimate.com/v1/repos/{{repo_id}}/test_reports/{{test_report_id}}/test_file_reports/batch",
"body": { "type": "json", "data": "{\"data\":[{\"type\":\"test_file_reports\",\"attributes\":{\"path\":\"lib/example.rb\",\"covered_percent\":87.5}}]}" }
},
"docs": "Uploads a batch of up to 500 source-file coverage records."
}
]
}
]
}