-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapiary.apib
152 lines (135 loc) · 3.83 KB
/
apiary.apib
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
HOST: http://dash.fcolors.ru/api/v1/
--- Go python3 ---
---
Public API of [GoPython3](http://gopython3.com)
Currently it's alpha, so expect changes.
---
--
Job Resources
--
List all jobs, that we ever processed (or are processing)
GET /jobs/
< 200
< Content-Type: application/json
{ "items": [
{ "id": 1,
"url": "/job/1/",
"status": "completed",
"created_at": "2013-09-28T02:15:15Z",
"updated_at": "2013-09-28T02:15:15Z",
"started_at": "2013-09-28T03:15:15Z",
"finished_at": "2013-09-28T04:15:15Z"
},
{ "id": 2,
"url": "/job/2/",
"status": "running",
"created_at": "2013-09-28T02:18:15Z",
"updated_at": "2013-09-28T02:15:15Z",
"started_at": "2013-09-28T03:18:15Z",
"finished_at": null
},
{ "id": 3,
"url": "/job/3/",
"status": "pending",
"created_at": "2013-09-28T02:15:15Z",
"updated_at": "2013-09-28T02:15:15Z",
"started_at": null,
"finished_at": null
}
]}
Process your requirements to add new job
POST /jobs/
> Content-Type: application/json
{ "requirements": "django==1.4.3\ndjango-storages\ndjango-compressor==1.1.2"}
< 201
< Content-Type: application/json
{ "status": "created",
"url": "http://127.0.0.1:8000/jobs/2/"
}
Job instance, listing containing packages python3 support.
Values update while the job is running.
GET /jobs/{id}/
< 200
< Content-Type: application/json
{ "url": "/job/2/",
"status": "running",
"created_at": "2013-09-28T02:15:15Z",
"updated_at": "2013-09-28T03:15:15Z",
"started_at": "2013-09-28T03:15:15Z",
"finished_at": null,
"packages": [
{ "id": "django/1.4.3",
"url": "http://127.0.0.1:8000/packages/django/1.4.3/",
"name": "django",
"version": "1.4.3",
"status": "completed",
"created_at": "2013-09-28T02:15:16Z",
"updated_at": "2013-09-28T03:22:18Z",
"finished_at": "2013-09-28T03:22:18Z"
},
{ "id": "django-storages",
"url": "http://127.0.0.1:8000/packages/django-storages/",
"name": "django-storages",
"version": null,
"status": "running",
"created_at": "2013-09-28T02:15:16Z",
"updated_at": "2013-09-28T03:22:35Z",
"finished_at": null
},
{ "id": "django_compressor/1.1.2",
"url": "http://127.0.0.1:8000/packages/django_compressor/1.1.2/",
"name": "django-compressor",
"version": "1.1.2",
"status": "pending",
"created_at": "2013-09-28T02:15:16Z",
"updated_at": null,
"finished_at": null
}
]
}
-- Packages Resources --
Python 3 support status for single package.
For now we'll check only latest version available on PyPI and in repo.
List view is not avaliable yet.
GET /packages/{id}/{version}/
< 200
< Content-Type: application/json
{ "id": "django_compressor/1.3",
"url": "http://127.0.0.1:8000/packages/django_compressor/1.3/",
"name": "django-compressor",
"version": "1.3",
"status": "completed",
"created_at": "2013-09-28T02:15:16Z",
"updated_at": "2013-09-28T03:22:35Z",
"pypi": {
"current": {
"url": "https://pypi.python.org/pypi/django_compressor/1.3/",
"version": "1.3",
"python3": ["3.3"],
"release_date": "2013-09-22T01:56:12Z"
},
"latest": {
"url": "https://pypi.python.org/pypi/django_compressor/1.3/",
"version": "1.3",
"python3": ["3.3"],
"release_date": "2013-09-22T01:56:12Z"
}
},
"repo": {
"url": "https://github.com/jezdez/django_compressor",
"last_commit_date": "2013-09-22T01:56:12Z"
},
"issues": [{
"url": "https://github.com/jezdez/django_compressor/issues/360",
"status": "closed"
}],
"forks": [],
"ci": {
"url": "https://travis-ci.org/jezdez/django_compressor",
"status": "passing"
},
"comments": {
"count": 1,
"most_voted": "Enlarge your python!"
}
}