syedshahidashiqali / labyrinth-solution-apis

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

Home Page:https://hub.docker.com/r/syedshahidashiqali/ionos-api-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://hub.docker.com/r/syedshahidashiqali/ionos-api-server


Languages

Language:JavaScript 99.1%Language:Dockerfile 0.7%Language:Makefile 0.2%