Skip to content

stephanieguzm/te-cuento-api

Repository files navigation

Té Cuento logo

Té Cuento API

Table of contents

About the Project

Té Cuento API is a REST API created to support the front-end Té Cuento project and to enhance my understanding of backend technologies

Front-End Repository
Deployed Project - Please be patient while the page fetches data from the API

Technologies Used

Project is created with:

Database Objects

The TEA Object 🍵

Properties Description Type
id tea id integer
type tea type text
name tea name text
img image url text
origin cultivation location text
description tea description text
brew_time range of minutes to steep text
temperature brewing water temperature in farenheit integer
infusions number of tea steepings per serving integer
caffeine_level tea caffeine level text
farmer farmer name text
farmer_img image url text

The COMMENTS Object

Properties Description Type
id comment id integer
tea_id parent tea id integer
user_name commentor's name text
user_message commentor's message text

Routes

primary route: https://te-cuento.herokuapp.com/api/v1

Routes HTTP Methods Description
/teas GET Displays all teas
/teas/:id GET Displays a specific tea, given its id
/comments POST Adds a comment to the object

Next Steps

  • Populate database with new comments

About

REST API created to support project Té Cuento

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published