Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
15cdade1
Commit
15cdade1
authored
Apr 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup: use real HTTP transmission information.
parent
5fab9085
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
documentation/source/rest.rst
documentation/source/rest.rst
+23
-12
No files found.
documentation/source/rest.rst
View file @
15cdade1
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment