Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
169 lines (138 loc) · 2.6 KB

diets.md

File metadata and controls

169 lines (138 loc) · 2.6 KB

Food Services Diets

GET /foodservices/diets.{format}

Description

This method returns a list of all diets

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1321 Enabled Yes
Service Name foodservices Service ID 269
Information Steward Food Services Data Type Direct DB Connection
Update Frequency Every request (live) Cache Time 0 seconds

Notes

  • Usage won't increase if there is not data returned
  • We cannot modify the data from this method
  • Any value can be null

Sources

Parameters

GET /foodservices/diets.{format}
Parameter Type Required Description
key filter yes Your API key
callback filter no JSONP callback format

Output Formats

  • json
  • xml

Examples

GET /foodservices/diets.{format}

Response

Field Name Type Value Description
diet_id integer Diet ID number
diet_type string Diet type

Any value can be null

Output

JSON

{
  "meta":{
    "requests":134,
    "timestamp":1381961246,
    "status":200,
    "message":"Request successful",
    "method_id":2,
    "version":2.07,
    "method":{
      
    }
  },
  "data":[
    {
      "diet_id":2,
      "diet_type":"Non Vegetarian"
    },
    {
      "diet_id":5,
      "diet_type":"Vegan"
    },
    {
      "diet_id":6,
      "diet_type":"Vegetarian"
    },
    {
      "diet_id":7,
      "diet_type":"Halal"
    }
  ]
}