Skip to content

This is an Api for a ficticional university restaurant transaction system that i made to train some skills in typescript

License

Notifications You must be signed in to change notification settings

AleFreitas/FastRu-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastRu-api

It is commonplace for Federal universities at Brasil to have a big restaurant with cheaper prices made for it's students

However, thanks to bureaucracy and some other problems in most universities the system used for the students account is usually only available at the restaurant. This means every student has to buy their ticket or put their money on their account presencially, causing great queues when students want to buy their tickets or even greater ones when they are entering the eating areas.

This is an Api for a ficticional university restaurant transaction system that i made to train some skills in typescript that aims to solve this problem by creating a online system for the students to buy their tickets at home, reducing the queues to buy tickets or deposit money presencially

database modeling

image

Routes

POST: /main_dish

Body: { "name" : "main dish name" }

POST: /salad

{ "name" : "salad name" }

POST: /accompaniment

{ "name" : "accompaniment name" }

POST: /dessert

{ "name" : "dessert name"}

POST: /dish

{
      "main_dish" : "valid main dish name",
      "salad1" : "valid salad name",
      "salad2" : "valid salad name",
      "accompaniment" : "valid accompaniment name",
      "dessert" : "valid dessert name",
      "date" : "valid date name"
}

DELETE: /dish?date=DD_MM_YYYY

DELETE: /main_dish?name=Feijoada

DELETE: /accompaniment?name=Farofa

DELETE: /dessert?name=Banana

DELETE: /salad?name=Alface\

PUT: /dish/main_dish

{
      "name":"main dish name",
      "chosenDate":"DD/MM/YYYY"
}

PUT: /dish/salad

{
      "chosenDate" : "DD/MM/YYYY,
      "name" : "salad name",
      "saladOption" : salad option number (1 or 2)
}

PUT: /dish/accompaniment

{
      "name":"accompaniment name",
      "chosenDate":"DD/MM/YYYY"
}

PUT: /dish/dessert

{
      "name":"dessert name",
      "chosenDate":"DD/MM/YYYY"
}

GET: /dish?chosenDate=DD_MM_YYYY

GET: /dish/worker?id=5

About

This is an Api for a ficticional university restaurant transaction system that i made to train some skills in typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published