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
Klaus Wölfel
slapos.core
Commits
cd855a47
Commit
cd855a47
authored
Jul 13, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Included draft rest API description.
Working in Progress
parent
a5b888e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
+72
-0
slapos/README.restapi.txt
slapos/README.restapi.txt
+72
-0
No files found.
slapos/README.restapi.txt
0 → 100644
View file @
cd855a47
REST API DESCRIPTION
=====================
The follow text contains the REST API Description for Communication
between slapos.slap and master/proxy.
GET /<computer_id>
Returns information about computer
POST /<computer_id>/partition/<computer_partition_id> < connection (json/xml)
Set instance parameter informations on the slagrid server
POST /<computer_id>/usage
Report computer partition usage
### SOFTWARE RELEASE WORKFLOW
POST /<computer_id>/software/building
Reports that Software Release is being build
POST /<computer_id>/software/available
Reports that Software Release is available
POST /<computer_id>/software/error
Add an error for a software Release workflow
### Computer Partition Workflow
POST /<computer_id>/partition/<computer_partition_id>/building
Reports that Computer Partition is being build
POST /<computer_id>/partition/<computer_partition_id>/available
Reports that Computer Partition is available
POST /<computer_id>/partition/<computer_partition_id>/error
Add an error for the software Instance Workflow
POST /<computer_id>/partition/<computer_partition_id>/started
Reports that Computer Partition is started
POST /<computer_id>/partition/<computer_partition_id>/stopped
Reports that Computer Partition is stopped
POST /<computer_id>/partition/<computer_partition_id>/destroyed
Reports that Computer Partition is destroyed
### Still undecided
#@app.route('<computer-id>/partition/<partition_reference>', methods=['PUT'])
@app.route('/partition', methods=['POST'])
def requestComputerPartition(partition_reference = ''):
PUT ??? /configuration < json
Load the given json as configuration for the computer object
GET /<computer_reference>/partition/<partition_reference>
Registers connected representation of computer partition and
returns Computer Partition class object ????
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