Labs/Bespin/DesignDocs/VCSIntegration: Difference between revisions

Jump to navigation Jump to search
 
Line 99: Line 99:
== Server API changes ==
== Server API changes ==


Due to the flexible nature of this command, I'm envisioning adding a single new server URL:
Due to the flexible nature of this command, I'm envisioning adding a small new server API:


; POST /vcs/[project]/[command] : Send a JSON message {'args' : 'the command line arguments'} as the body. A 400 response with error text in the response body will result from a bad command line. A 200 response will have a JSON result. For many commands, there will just be 'output' on the object with string output that can be displayed to the user.
; POST /vcs/[project]/ : Send a JSON message {'command' : ['command', 'other', 'arguments']} as the body. A 400 response with error text in the response body will result from a bad command line. A 200 response will have a JSON result. For many commands, there will just be 'output' on the object with string output that can be displayed to the user.


== Data model changes ==
== Data model changes ==
canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,093

edits

Navigation menu