Skip to content

turingschool-examples/turdle-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turdle-api

This repo is associated with the Refactor Tractor - 1 Day Challenge activity.

Set Up

Clone this down into a separate directory from the front-end repo, and cd into it. Then run:

npm install

npm start

Endpoints

Description URL Method Required Properties for Request Body Sample Successful Response
Get all words (iteration 2) http://localhost:3001/api/v1/words GET none An array containing all words
Add a new game stat (iteration 4) http://localhost:3001/api/v1/games POST { solved: <boolean (did they solve the puzzle?)>, guesses: <number (how many guesses did they make?)> } {message: 'Game stats recorded successfully.' }
Get all previous games stats (iteration 4) http://localhost:3001/api/v1/games GET none An array containing game stats for all previous games (will be empty until you POST)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published