Skip to content

a-well/project-happy-thoughts-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Happy Thoughts API

API for saving Happy Thoughts

The problem

Handle validation and updates of the thoughts database using Mongoose and MongoDB.

Routes

GET /thoughts

This endpoint returns a maximum of 20 thoughts, sorted by createdAt

POST /thoughts

This endpoint creates a new thought and expects a JSON body with the thought message, like this: { "message": "The weather todays is great, yay 😎" }.

POST /thoughts/:thoughtId/like

This endpoint increments the likes of a thought.

View it live

Browse the API on this url: https://project-happy-thoughts-api-j7vhqcm4aq-lz.a.run.app

Or browse the React UI at https://happythoughtsproject.netlify.app/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%