Skip to content

An API for estimating wakefulness time of the different types of Coffee.

License

Notifications You must be signed in to change notification settings

armanyazdi/wakefulness-time-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wakefulness Time API

An API for estimating wakefulness time by caffeine content of the different types of Coffee.

Usage

Let's take a look at what an example test case would look like using wakefulness-time-api.

GET:

http://localhost:8080/api/wakefulness?coffee=COFFEE&robusta=ROBUSTA&time=TIME

Parameters:

  • coffee: Type of Coffee.
  • robusta: Proportion of Robusta in percentage (Default = 0).
  • time: Enter the time manually or let it go (Default = now).

Response

{
  "id": 1,
  "status": "OK",
  "time": "07:30",
  "coffee": "Americano",
  "arabica": "100%",
  "robusta": "0%",
  "caffeine": "249 mg",
  "wakefulness": "10-13 hours",
  "minimum": "17:45",
  "maximum": "20:15",
  "average": "18:40"
}

About

An API for estimating wakefulness time of the different types of Coffee.

Topics

Resources

License

Stars

Watchers

Forks

Languages