green

Table of Contents
  1. Built with
  2. How to run app locally
  3. API doc
  4. Demo

Display app:

App => Click Here to view app.

Built With:

Discover some packages of this project:

Local setup:

#1

For debug or run operation:

git clone https://github.com/TaylanYildirim/green.git
cd green/ && go get && go run main.go

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]
     ]
 }

Demo:

Insert Demo

insert.Demo.mov

Delete Demo

deleteDemo.mov

Get Demo

getMaze.Demo.mov

Update Demo

updateMaze.demo.mov