Table of Contents
App => Click Here to view app.
Discover some packages of this project:
For debug or run operation:
Insert Maze:
POST https://green-code-assignment.herokuapp.com/maze
Parameter | Type | Description |
---|---|---|
id |
string |
Required. maze id |
Request Body
{
"mazeId": 0,
"maze" : [
[1,1,1,1,0,1,1,1],
[1,0,0,0,0,0,0,1],
[1,0,1,1,1,0,1,1],
[1,0,0,0,1,0,0,1],
[1,1,1,0,1,1,0,1],
[1,0,0,0,1,0,0,1],
[1,0,0,2,0,0,0,1],
[1,1,1,1,1,1,1,1]
]
}
Delete Maze:
DELETE https://green-code-assignment.herokuapp.com/maze/{id}
e.g. https://green-code-assignment.herokuapp.com/maze/0
Get Maze:
GET https://green-code-assignment.herokuapp.com/maze/{id}
e.g. https://green-code-assignment.herokuapp.com/maze/0
Update Maze:
PUT https://green-code-assignment.herokuapp.com/maze/{id}
e.g. https://green-code-assignment.herokuapp.com/maze/0
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Maze id |
Request Body
{
"maze" : [
[1,1,1,1,0,1,1,1],
[1,0,0,0,0,0,0,1],
[1,0,1,1,1,0,1,1],
[1,0,0,0,1,0,0,1],
[1,1,1,0,1,1,0,1],
[1,0,0,0,1,0,0,1],
[1,0,0,2,0,0,0,1],
[1,1,1,1,1,1,1,1]
]
}