Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/prithvisagarrao/restaurant-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/prithvisagarrao/restaurant-api

  • v0.0.0-20200526005653-d639115e8a8f
  • Source
  • Go
  • Socket score

Version published
Created
Source

Restaurant APIs

Technology

  • Go 1.8
    • Postgres connection details:
      • host: postgres
      • port: 5432
      • dbname: recipes_dev
      • username: recipes_usr
      • password: recipes_usr
  • Use the provided docker-compose.yml file in the root of this repository. You are free to add more containers to this if you like.

The API conforms to REST practices and provide the following functionality:

  • List, create, read, update, and delete Recipes
  • Search recipes
  • Rate recipes

Endpoints

Application conforms to the following endpoint structure and returns the HTTP status codes appropriate to each operation. Endpoints specified as protected below require authentication to view. The method of authentication is Json-Web-Tokens(JWT).

Recipes
NameMethodURLProtected
ListGET/recipes
CreatePOST/recipes
GetGET/recipes/{id}
UpdatePUT/PATCH/recipes/{id}
DeleteDELETE/recipes/{id}
RatePOST/recipes/{id}/rating

An endpoint for recipe search functionality is also implemented. The HTTP method and endpoint for this

Schema

  • Recipe
    • Unique ID
    • Name
    • Prep time
    • Difficulty (1-3)
    • Vegetarian (boolean)

Additionally, recipes can be rated many times from 1-5 and a rating is never overwritten.

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc