Skip to content
Recipe Studio API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
routes
.gitignore
CONTRIBUTING.md
LICENSE
README.md
app.js
firebaseAdmin.js
package.json

README.md

Recipe Studio, server

API endpoints

API URL: https://api.recipe.studio

Creating records

POST to /recipe/new in the following schema model:

  name            :   String
  ingredients     :   [  
    {
      ingredient  :   String (ingredient ID)
      quantity    :   Number
      units       :   String
    }, {more ingredients....}
  ]
  image           :   String,
  description     :   String,
  author          :   String (user ID)
}

Reading records

GET to /recipe/all for all records

GET to /recipe/:idNum for a specific record, where :idNum is the record ID

Updating records

PUT to /recipe/:idNum to update a specific record, where :idNum is the record ID. The data sent should include the full record following the Recipe model posted above.

Deleting records

DELETE to /recipe/:idNum to delete a specific record, where :idNum is the record ID


Ingredients API will eventually be fed from here: https://ndb.nal.usda.gov/ndb/doc/apilist/API-FOOD-REPORT.md

You can’t perform that action at this time.