Commit 15cdade1 authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup: use real HTTP transmission information.

parent 5fab9085
...@@ -25,7 +25,7 @@ The ``"Host"`` header is required in order to avoid to token leakage. ...@@ -25,7 +25,7 @@ The ``"Host"`` header is required in order to avoid to token leakage.
Example of using Bearer token:: Example of using Bearer token::
GET http://example.com/api/v1/instance/{instance_id} HTTP/1.1 GET /api/v1/instance/{instance_id} HTTP/1.1
Host: example.com Host: example.com
Accept: application/json Accept: application/json
Authorization: Bearer 7Fjfp0ZBr1KtDRbnfVdmIw Authorization: Bearer 7Fjfp0ZBr1KtDRbnfVdmIw
...@@ -109,7 +109,8 @@ Request a new instantiation of a software. ...@@ -109,7 +109,8 @@ Request a new instantiation of a software.
`Request`:: `Request`::
POST http://example.com/api/v1/instance HTTP/1.1 POST /api/v1/instance HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -169,7 +170,8 @@ Request all instance information. ...@@ -169,7 +170,8 @@ Request all instance information.
`Request`:: `Request`::
GET http://example.com/api/v1/instance/{instance_id} HTTP/1.1 GET /api/v1/instance/{instance_id} HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
`Route values`: `Route values`:
...@@ -220,7 +222,8 @@ Request the instance certificates. ...@@ -220,7 +222,8 @@ Request the instance certificates.
`Request`:: `Request`::
GET http://example.com/api/v1/instance/{instance_id}/certificate HTTP/1.1 GET /api/v1/instance/{instance_id}/certificate HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
`Route values`: `Route values`:
...@@ -250,7 +253,8 @@ Trigger the re-instantiation of all partitions in the instance tree ...@@ -250,7 +253,8 @@ Trigger the re-instantiation of all partitions in the instance tree
`Request`:: `Request`::
POST http://example.com/api/v1/instance/{instance_id}/bang HTTP/1.1 POST /api/v1/instance/{instance_id}/bang HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -276,7 +280,8 @@ Modify the instance information and status. ...@@ -276,7 +280,8 @@ Modify the instance information and status.
`Request`:: `Request`::
PUT http://example.com/api/v1/instance/{instance_id} HTTP/1.1 PUT /api/v1/instance/{instance_id} HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -331,7 +336,8 @@ Add a new computer in the system. ...@@ -331,7 +336,8 @@ Add a new computer in the system.
`Request`:: `Request`::
POST http://example.com/api/v1/computer HTTP/1.1 POST /api/v1/computer HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -363,7 +369,8 @@ Get the status of a computer ...@@ -363,7 +369,8 @@ Get the status of a computer
`Request`:: `Request`::
GET http://example.com/api/v1/computer/{computer_id} HTTP/1.1 GET /api/v1/computer/{computer_id} HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
`Route values`: `Route values`:
...@@ -408,7 +415,8 @@ Modify computer information in the system ...@@ -408,7 +415,8 @@ Modify computer information in the system
`Request`:: `Request`::
PUT http://example.com/api/v1/computer/{computer_id} HTTP/1.1 PUT /api/v1/computer/{computer_id} HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -450,7 +458,8 @@ Request to supply a new software release on a computer ...@@ -450,7 +458,8 @@ Request to supply a new software release on a computer
`Request`:: `Request`::
POST http://example.com/api/v1/computer/{computer_id}/supply HTTP/1.1 POST /api/v1/computer/{computer_id}/supply HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -476,7 +485,8 @@ Request update on all partitions ...@@ -476,7 +485,8 @@ Request update on all partitions
`Request`:: `Request`::
POST http://example.com/api/v1/computer/{computer_id}/bang HTTP/1.1 POST /api/v1/computer/{computer_id}/bang HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
...@@ -502,7 +512,8 @@ Report computer usage ...@@ -502,7 +512,8 @@ Report computer usage
`Request`:: `Request`::
POST http://example.com/api/v1/computer/{computer_id}/report HTTP/1.1 POST /api/v1/computer/{computer_id}/report HTTP/1.1
Host: example.com
Accept: application/json Accept: application/json
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
......
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