Skip to content

Leet Code is an application designed to help software engineers study for common technical interview questions.

Notifications You must be signed in to change notification settings

alexmkio/leet-cards-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leet Cards, the API

Leet Code is an application designed to help software engineers study for common technical interview questions.

This API is deloyed to Heroku. The host name is https://leet-cards.herokuapp.com

Technologies Used

This API was built in Node.js and TypeScript using the express framework. A PostgreSQL database is utilized.

Security

Headers

  • All GET requests should have the following headers:
{
"Content-Type": "application/json"
}
  • All POST, PUT, and DELETE requests should have the following headers:
{
"Content-Type": "application/json",
"apiKey": "mySecret-NeverTelling-:p"
}

Endpoints

Description Path Method Body Required for Request Sample Successful Response
Get all flash cards /cards/ GET none An array of all flash card objects
Get a single flash card /cards/:id GET none A single flash card object
Create a new flash card /cards/ POST { question: "string", answer: "string", side: "string", categories: [ "string", ... ] } A new flash card object
Update an existing flash card /cards/:id PUT { answer: "string" } "The answer was updated!"
Delete an existing flash card /cards/:id DELETE none "The card has been deleted!"

Shape Of A Flash Card Object

{
  "id": "number",
  "question": "string",
  "answer": "string",
  "side": "string",
  "categories": [
      "string",
      ...
  ]
}

Install

  1. Clone down this repository git clone https://github.com/alexmkio/leet-cards-api
  2. CD into your local clone cd leet-cards-api
  3. Install project dependencies npm install
  4. Run npm start

Contributors

This application was built by Alex Kio; a Front End Engineering alum from the Turing School of Software and Design.

About

Leet Code is an application designed to help software engineers study for common technical interview questions.

Resources

Stars

Watchers

Forks