Skip to content

Labyrinth Solution Assessment Project using Node JS, Express JS, MongoDB, and Docker with CI/CD Automation.

Notifications You must be signed in to change notification settings

syedshahidashiqali/labyrinth-solution-apis

Repository files navigation

Labyrinth Solution Provider APIs with NodeJS, ExpressJS, and MangoDB.

example

Try My Docker Image

1. docker pull syedshahidashiqali/ionos-api-server
2. docker run -p 5000:5000 --name any-container-name syedshahidashiqali/ionos-api-server:latest

Endpoints

REST APIs provide the following endpoints:

Base API Endpoint

/api

Return all the labyrinths for the current user:

Structure:

GET /labyrinth

Return a specific labyrinth of the user by ID:

Structure:

GET /labyrinth/:id

Create an empty labyrinth and return the labyrinth ID:

Structure:

POST /labyrinth

Set the type of the specific block of the labyrinth using x/y coordinates (type is either 'empty' or 'filled'):

Structure:

PUT /labyrinth/:id/playfield/:x/:y/:type

set the starting block of the labyrinth using x/y coordinates:

Structure:

PUT /labyrinth/:id/start/:x/:y

Set the ending block of the labyrinth using x/y coordinates:

Structure:

PUT /labyrinth/:id/end/:x/:y

Return a solution for the labyrinth:

Structure:

GET /labyrinth/:id/solution
Solution is the array of directions in the following format:
['left', 'up', 'right', 'down', 'down', 'down']

About

Labyrinth Solution Assessment Project using Node JS, Express JS, MongoDB, and Docker with CI/CD Automation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages