Giter Club home page Giter Club logo

dairy-api's Introduction

Dairy Api

This repository is home to the dairy api, an api made by James Kawashima, Brandon Lee Felix, Nicholas Adiohos and Mihai Costin Serban.

This api exposes resources concerning milk and other dairy products.

Resources

/cheese: GET, POST, PUT, DELETE, filter by country_name, product_name, brand_name

/ice_cream: GET, POST, PUT, DELETE, filter by country_name, product_name, brand_name

/butter: GET, POST, PUT, DELETE, filter by country_name, product_name, brand_name

/milk: GET, POST, PUT, DELETE, filter by name, average_cost, place_of_origin, year_created, country_name, brand_name

/brand: GET, POST, PUT, DELETE, filter by brand_name, country_name

/country: GET, filter by country_name, region, population, area_sq_mile, population_density_sq_mile, gdpPerCapita

/projectedMilkProduction: GET, filter by year, type, production, consumption, price

/nutritional_value: GET, filter by kcal, fiber, cholesterol, carbohydrate, protein, monosat_fat, polysat_fat, sat_fat

/unit_type: GET, filter by unit_name, unit_scale

/recipes: GET a list of recipes from the spoonacular api

Requirements

The header must include the application type in order to use the resource. When fetching data, the user must include the page number and page size in the filters.

dairy-api's People

Contributors

vapidx4 avatar tanzaj avatar nicholasa2 avatar laronichill avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dairy-api's Issues

Improve Error Handling for POST & Delete for Milk

POST

  • When POSTing new data, it should create entries where there is no PK.
  • If it loops over a PK that already exists in the table, it should handle the error by saying that it already exists.
  • It should therefore continue to loop through and create new entries in which there is no PK without halting the operation entirely.

DELETE
When an item does not exist in the table, respond with an error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.