lh1008 / rest_api

Rest API Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rest_api

Rest API Project

CRUD REST API description

Root URL

http://localhost/recipes/api/v0.1/

HTTP Method URI Action
GET http://localhost/recipes/api/v0.1/recipes Retrieve list of recipes
GET http://localhost/recipes/api/v0.1/recipes/[recipe_id] Retrieve a recipe
POST http://localhost/recipes/api/v0.1/recipes Create a new recipe
PUT http://localhost/recipes/api/v0.1/recipes/[recipe_id] Update an existing recipe
DELETE http://localhost/recipes/api/v0.1/recipes/[recipe_id] Delete a recipe

Database Model

Recipe

  • id: unique UUID. UUID type
  • title: short description. String type.
  • ingredients: list of ingredients. String type.
  • description: long recipe descripion. Text type.
  • difficulty: low, medium, high
  • created_at: date creation
  • updated_at: update date.

About

Rest API Project

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 99.0%Language:C 0.8%Language:JavaScript 0.1%Language:PowerShell 0.1%Language:CSS 0.0%Language:C++ 0.0%Language:Shell 0.0%Language:Assembly 0.0%Language:Batchfile 0.0%