|
12 | 12 |
|
13 | 13 | Destroy a :class:`~api.models.Key` by its `id`. |
14 | 14 |
|
15 | | - See also :meth:`KeyViewSet.destroy() <api.views.KeyViewSet.destroy>` |
16 | | -
|
17 | 15 | .. http:get:: /api/keys/ |
18 | 16 |
|
19 | 17 | List all :class:`~api.models.Key`\s. |
|
22 | 20 |
|
23 | 21 | Create a new :class:`~api.models.Key`. |
24 | 22 |
|
25 | | - See also :meth:`KeyViewSet.post_save() <api.views.KeyViewSet.post_save>` |
26 | | -
|
27 | 23 |
|
28 | 24 | Providers |
29 | 25 | ========= |
|
72 | 68 |
|
73 | 69 | Create a new :class:`~api.models.Flavor`. |
74 | 70 |
|
75 | | - See also :meth:`FlavorViewSet.create() <api.views.FlavorViewSet.create>` |
76 | | -
|
77 | 71 |
|
78 | 72 | Formations |
79 | 73 | ========== |
|
82 | 76 |
|
83 | 77 | Retrieve a :class:`~api.models.Formation` by its `id`. |
84 | 78 |
|
| 79 | +.. http:patch:: /api/formations/(string:id)/ |
| 80 | +
|
| 81 | + Update parts of a :class:`~api.models.Formation`. |
| 82 | +
|
85 | 83 | .. http:delete:: /api/formations/(string:id)/ |
86 | 84 |
|
87 | 85 | Destroy a :class:`~api.models.Formation` by its `id`. |
|
95 | 93 | Create a new :class:`~api.models.Formation`. |
96 | 94 |
|
97 | 95 | See also |
98 | | - :meth:`FormationViewSet.create() <api.views.FormationViewSet.create>` and |
99 | 96 | :meth:`FormationViewSet.post_save() <api.views.FormationViewSet.post_save>` |
100 | 97 |
|
101 | 98 |
|
102 | | -Infrastructure |
103 | | --------------- |
| 99 | +Formation Infrastructure |
| 100 | +------------------------ |
104 | 101 |
|
105 | 102 | .. http:get:: /api/formations/(string:id)/layers/(string:id)/ |
106 | 103 |
|
|
114 | 111 |
|
115 | 112 | Destroy a :class:`~api.models.Layer` by its `id`. |
116 | 113 |
|
| 114 | + See also |
| 115 | + :meth:`FormationLayerViewSet.destroy() <api.views.FormationLayerViewSet.destroy>` |
| 116 | +
|
117 | 117 | .. http:get:: /api/formations/(string:id)/layers/ |
118 | 118 |
|
119 | 119 | List all :class:`~api.models.Layer`\s. |
|
122 | 122 |
|
123 | 123 | Create a new :class:`~api.models.Layer`. |
124 | 124 |
|
| 125 | + See also |
| 126 | + :meth:`FormationLayerViewSet.create() <api.views.FormationLayerViewSet.create>` |
| 127 | +
|
125 | 128 | .. http:get:: /api/formations/(string:id)/nodes/(string:id)/ |
126 | 129 |
|
127 | 130 | Retrieve a :class:`~api.models.Node` by its `id`. |
|
134 | 137 |
|
135 | 138 | List all :class:`~api.models.Node`\s. |
136 | 139 |
|
137 | | -.. http:get:: /api/formations/(string:id)/containers/ |
138 | 140 |
|
139 | | - List all :class:`~api.models.Container`\s. |
| 141 | +Formation Actions |
| 142 | +----------------- |
| 143 | +
|
| 144 | +.. http:post:: /api/formations/(string:id)/scale/ |
| 145 | +
|
| 146 | + See also |
| 147 | + :meth:`FormationViewSet.scale() <api.views.FormationViewSet.scale>` |
| 148 | +
|
| 149 | +.. http:post:: /api/formations/(string:id)/balance/ |
| 150 | +
|
| 151 | + See also |
| 152 | + :meth:`FormationViewSet.balance() <api.views.FormationViewSet.balance>` |
| 153 | +
|
| 154 | +.. http:post:: /api/formations/(string:id)/calculate/ |
| 155 | +
|
| 156 | + See also |
| 157 | + :meth:`FormationViewSet.calculate() <api.views.FormationViewSet.calculate>` |
| 158 | +
|
| 159 | +.. http:post:: /api/formations/(string:id)/converge/ |
| 160 | +
|
| 161 | + See also |
| 162 | + :meth:`FormationViewSet.converge() <api.views.FormationViewSet.converge>` |
140 | 163 |
|
141 | 164 |
|
142 | | -Release Components |
143 | | ------------------- |
| 165 | +Applications |
| 166 | +============ |
144 | 167 |
|
145 | | -.. http:get:: /api/formations/(string:id)/config/ |
| 168 | +.. http:get:: /api/apps/(string:id)/ |
| 169 | +
|
| 170 | + Retrieve a :class:`~api.models.Application` by its `id`. |
| 171 | +
|
| 172 | +.. http:delete:: /api/apps/(string:id)/ |
| 173 | +
|
| 174 | + Destroy a :class:`~api.models.Formation` by its `id`. |
| 175 | +
|
| 176 | +.. http:get:: /api/apps/ |
| 177 | +
|
| 178 | + List all :class:`~api.models.Formation`\s. |
| 179 | +
|
| 180 | +.. http:post:: /api/apps/ |
| 181 | +
|
| 182 | + Create a new :class:`~api.models.Formation`. |
| 183 | +
|
| 184 | +
|
| 185 | +Application Release Components |
| 186 | +------------------------------ |
| 187 | +
|
| 188 | +.. http:get:: /api/apps/(string:id)/config/ |
146 | 189 |
|
147 | 190 | List all :class:`~api.models.Config`\s. |
148 | 191 |
|
149 | | -.. http:post:: /api/formations/(string:id)/config/ |
| 192 | +.. http:post:: /api/apps/(string:id)/config/ |
150 | 193 |
|
151 | 194 | Create a new :class:`~api.models.Config`. |
152 | 195 |
|
153 | | -.. http:get:: /api/formations/(string:id)/builds/(string:uuid)/ |
| 196 | +.. http:get:: /api/apps/(string:id)/builds/(string:uuid)/ |
154 | 197 |
|
155 | 198 | Retrieve a :class:`~api.models.Build` by its `uuid`. |
156 | 199 |
|
157 | | -.. http:post:: /api/formations/(string:id)/builds/ |
| 200 | +.. http:get:: /api/apps/(string:id)/builds/ |
| 201 | +
|
| 202 | + List all :class:`~api.models.Build`\s. |
| 203 | +
|
| 204 | +.. http:post:: /api/apps/(string:id)/builds/ |
158 | 205 |
|
159 | 206 | Create a new :class:`~api.models.Build`. |
160 | 207 |
|
161 | | -.. http:get:: /api/formations/(string:id)/releases/(int:version)/ |
| 208 | +.. http:get:: /api/apps/(string:id)/releases/(int:version)/ |
162 | 209 |
|
163 | 210 | Retrieve a :class:`~api.models.Release` by its `version`. |
164 | 211 |
|
165 | | -.. http:get:: /api/formations/(string:id)/releases/ |
| 212 | +.. http:get:: /api/apps/(string:id)/releases/ |
166 | 213 |
|
167 | 214 | List all :class:`~api.models.Release`\s. |
168 | 215 |
|
169 | | -Actions |
170 | | -------- |
171 | 216 |
|
172 | | -.. http:post:: /api/formations/(string:id)/scale/layers/ |
| 217 | +Application Infrastructure |
| 218 | +-------------------------- |
173 | 219 |
|
174 | | - See also |
175 | | - :meth:`FormationViewSet.scale_layers() <api.views.FormationViewSet.scale_layers>` |
| 220 | +.. http:get:: /api/apps/(string:id)/containers/(string:type)/(int:num)/ |
176 | 221 |
|
177 | | -.. http:post:: /api/formations/(string:id)/scale/containers/ |
| 222 | + List all :class:`~api.models.Container`\s. |
178 | 223 |
|
179 | | - See also |
180 | | - :meth:`FormationViewSet.scale_containers() <api.views.FormationViewSet.scale_containers>` |
| 224 | +.. http:get:: /api/apps/(string:id)/containers/(string:type)/ |
181 | 225 |
|
182 | | -.. http:post:: /api/formations/(string:id)/balance/ |
| 226 | + List all :class:`~api.models.Container`\s. |
183 | 227 |
|
184 | | - See also |
185 | | - :meth:`FormationViewSet.balance() <api.views.FormationViewSet.balance>` |
| 228 | +.. http:get:: /api/apps/(string:id)/containers/ |
186 | 229 |
|
187 | | -.. http:post:: /api/formations/(string:id)/calculate/ |
| 230 | + List all :class:`~api.models.Container`\s. |
| 231 | +
|
| 232 | +
|
| 233 | +Application Actions |
| 234 | +------------------- |
| 235 | +
|
| 236 | +.. http:post:: /api/apps/(string:id)/scale/ |
188 | 237 |
|
189 | 238 | See also |
190 | | - :meth:`FormatinViewSet.calculate() <api.views.FormationViewSet.calculate>` |
| 239 | + :meth:`AppViewSet.scale() <api.views.AppViewSet.scale>` |
191 | 240 |
|
192 | | -.. http:post:: /api/formations/(string:id)/converge/ |
| 241 | +.. http:post:: /api/apps/(string:id)/logs/ |
193 | 242 |
|
194 | 243 | See also |
195 | | - :meth:`FormationViewSet.converge() <api.views.FormationViewSet.converge>` |
| 244 | + :meth:`AppViewSet.logs() <api.views.AppViewSet.logs>` |
196 | 245 |
|
197 | | -.. http:post:: /api/formations/(string:id)/logs/ |
| 246 | +.. http:post:: /api/apps/(string:id)/run/ |
198 | 247 |
|
199 | 248 | See also |
200 | | - :meth:`FormationViewSet.logs() <api.views.FormationViewSet.logs>` |
| 249 | + :meth:`AppViewSet.run() <api.views.AppViewSet.run>` |
201 | 250 |
|
202 | | -.. http:post:: /api/formations/(string:id)/run/ |
| 251 | +.. http:post:: /api/apps/(string:id)/calculate/ |
203 | 252 |
|
204 | 253 | See also |
205 | | - :meth:`FormationViewSet.run() <api.views.FormationViewSet.run>` |
| 254 | + :meth:`AppViewSet.calculate() <api.views.AppViewSet.calculate>` |
| 255 | +
|
| 256 | +
|
| 257 | +Nodes |
| 258 | +===== |
| 259 | +
|
| 260 | +.. http:get:: /api/nodes/(string:id)/ |
| 261 | +
|
| 262 | + Retrieve a :class:`~api.models.Node` by its `id`. |
| 263 | +
|
| 264 | +.. http:patch:: /api/nodes/(string:id)/ |
| 265 | +
|
| 266 | + Update parts of a :class:`~api.models.Node`. |
| 267 | +
|
| 268 | +.. http:delete:: /api/nodes/(string:id)/ |
| 269 | +
|
| 270 | + Destroy a :class:`~api.models.Node` by its `id`. |
| 271 | +
|
| 272 | +.. http:get:: /api/nodes/ |
| 273 | +
|
| 274 | + List all :class:`~api.models.Node`\s. |
| 275 | +
|
| 276 | +.. http:post:: /api/nodes/ |
| 277 | +
|
| 278 | + Create a new :class:`~api.models.Node`. |
206 | 279 |
|
207 | 280 |
|
208 | 281 | Auth |
209 | 282 | ==== |
210 | 283 |
|
211 | 284 | .. http:post:: /api/auth/register/ |
212 | 285 |
|
213 | | - Create a new :class:`~api.models.UserRegistration`. |
| 286 | + Create a new :class:`~django.contrib.auth.models.User`. |
214 | 287 |
|
215 | 288 | .. http:post:: /api/auth/login |
216 | 289 |
|
|
225 | 298 | Generate an API key. |
226 | 299 |
|
227 | 300 | """ |
228 | | -# pylint: disable=C0103 |
229 | 301 |
|
230 | 302 | from __future__ import unicode_literals |
231 | 303 |
|
|
249 | 321 | views.KeyViewSet.as_view({ |
250 | 322 | 'get': 'retrieve', 'delete': 'destroy'})), |
251 | 323 | url(r'^keys/?', |
252 | | - views.KeyViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 324 | + views.KeyViewSet.as_view({'get': 'list', 'post': 'create'})), |
253 | 325 | # provider |
254 | 326 | url(r'^providers/(?P<id>[a-z0-9-]+)/?', |
255 | 327 | views.ProviderViewSet.as_view({ |
256 | 328 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
257 | 329 | url(r'^providers/?', |
258 | | - views.ProviderViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 330 | + views.ProviderViewSet.as_view({'get': 'list', 'post': 'create'})), |
259 | 331 | # flavor |
260 | 332 | url(r'^flavors/(?P<id>[a-z0-9-]+)/?', |
261 | 333 | views.FlavorViewSet.as_view({ |
262 | 334 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
263 | 335 | url(r'^flavors/?', |
264 | | - views.FlavorViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 336 | + views.FlavorViewSet.as_view({'get': 'list', 'post': 'create'})), |
265 | 337 | # formation infrastructure |
266 | 338 | url(r'^formations/(?P<id>[a-z0-9-]+)/layers/(?P<layer>[a-z0-9-]+)/?', |
267 | 339 | views.FormationLayerViewSet.as_view({ |
268 | 340 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
269 | 341 | url(r'^formations/(?P<id>[a-z0-9-]+)/layers/?', |
270 | | - views.FormationLayerViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 342 | + views.FormationLayerViewSet.as_view({'get': 'list', 'post': 'create'})), |
271 | 343 | url(r'^formations/(?P<id>[a-z0-9-]+)/nodes/(?P<node>[a-z0-9-]+)/?', |
272 | 344 | views.FormationNodeViewSet.as_view({ |
273 | 345 | 'get': 'retrieve', 'delete': 'destroy'})), |
|
287 | 359 | views.FormationViewSet.as_view({ |
288 | 360 | 'get': 'retrieve', 'patch': 'partial_update', 'delete': 'destroy'})), |
289 | 361 | url(r'^formations/?', |
290 | | - views.FormationViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 362 | + views.FormationViewSet.as_view({'get': 'list', 'post': 'create'})), |
291 | 363 | # application release components |
292 | 364 | url(r'^apps/(?P<id>[a-z0-9-]+)/config/?', |
293 | | - views.AppConfigViewSet.as_view({'post': 'create', 'get': 'retrieve'})), |
| 365 | + views.AppConfigViewSet.as_view({'get': 'retrieve', 'post': 'create'})), |
294 | 366 | url(r'^apps/(?P<id>[a-z0-9-]+)/builds/(?P<uuid>[a-z0-9-]+)/?', |
295 | 367 | views.AppBuildViewSet.as_view({'get': 'retrieve'})), |
296 | 368 | url(r'^apps/(?P<id>[a-z0-9-]+)/builds/?', |
297 | | - views.AppBuildViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 369 | + views.AppBuildViewSet.as_view({'get': 'list', 'post': 'create'})), |
298 | 370 | url(r'^apps/(?P<id>[a-z0-9-]+)/releases/(?P<version>[0-9]+)/?', |
299 | 371 | views.AppReleaseViewSet.as_view({'get': 'retrieve'})), |
300 | 372 | url(r'^apps/(?P<id>[a-z0-9-]+)/releases/?', |
|
319 | 391 | url(r'^apps/(?P<id>[a-z0-9-]+)/?', |
320 | 392 | views.AppViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})), |
321 | 393 | url(r'^apps/?', |
322 | | - views.AppViewSet.as_view({'post': 'create', 'get': 'list'})), |
| 394 | + views.AppViewSet.as_view({'get': 'list', 'post': 'create'})), |
323 | 395 | # nodes |
324 | 396 | url(r'^nodes/(?P<node>[a-z0-9-]+)/converge/?', |
325 | 397 | views.NodeViewSet.as_view({'post': 'converge'})), |
|
0 commit comments