Skip to content

gmaheshraju/Leetcode-backend-api

Repository files navigation

Leetcode-backend-api-Endpoints

Node js Backend ssytem Leetcode API

This Project uses Express http server to build simple api's to get started with backend development with Nodejs.

This is an example Express API project that demonstrates user authentication, question submission, and submission management.

API Details

Sign Up

Endpoint: POST /signup Description: Allows a user to sign up by providing an email and password.

Login

Endpoint: POST /login Description: Allows a user to log in by providing their email and password.

Submissions

Endpoint: GET /submissions

Description: Retrieves the user's submissions for a specific problem statement.

Endpoint: POST /submissions

Description: Allows a user to submit a problem solution, with solution being randomly accepted or rejected.

##Questions Endpoint: GET /questions

Description: Retrieves a list of questions.

Endpoint: POST /questions

Description: Allows an admin to add a new question.

Getting Started Clone the repository. Install the dependencies using npm install. Start the server using npm start. The API will be available at http://localhost:3002.

Import the postman collection.

go through the index.js code

start testing, debugging your first api.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published