UTCSheffield / rockstarapi

An api for the executing of Rockstar and returning of all the variable values as they change. An online editor will also be provided.
MIT License
0 stars 1 forks source link

API /rock/:id #1

Closed mr-eggleton closed 1 year ago

mr-eggleton commented 1 year ago

GET retrieves from the datastore the code and cached data POST stores the code runs it (caches if successful) returns PUT updates and reruns the code changing the cache if successful

Do we update the rock if the code fails ????

mr-eggleton commented 1 year ago

Same return type for all calls:

{
    "id" : 45678,
    "status" : "success",
    "code" : "lots of stuff\nwith lots of lines",
    "data" : { 
        "name"  : [2,45,463,64,245,325,325,243], 
        "name2" : [[0,1,2],[1,2,3],[2,3,4],[3,4],[3][]]
    }
}
devramsean0 commented 1 year ago

POST endpoint is redundant and moved to /compile/:code which is urlencoded

devramsean0 commented 1 year ago

GET is implemented, POST and PUT are moving to /compile/

devramsean0 commented 1 year ago

POST AND PUT are now implemented and tested working

mr-eggleton commented 1 year ago

Change the return type to be the same as the compile.

devramsean0 commented 1 year ago

This is implemented and working