food

Search foods by photo with fast food entry sorting algorithm applied

Changed on
post/foods/search_by_photo_ffe

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/foods/search_by_photo_ffe
  • Auth
    HTTP bearer

Request body multipart/form-data

meal_name'breakfast' | 'lunch' | 'dinner' | 'snack'
notestring
num_itemsinteger
photostring binary required
photo2string binary
sizing_input'small' | 'medium' | 'large' | 'x-large' nullable

Response

successful operation

meal_photo_idinteger required

Example response

{
  "results": [
    {
      "nutrient_overrides": {
        "aa_patient": {
          "ontology": {
            "id": 42,
            "levels": [
              "food"
            ]
          }
        },
        "bb_reviewer": {
          "ontology": {
            "id": 42,
            "levels": [
              "food"
            ]
          }
        },
        "cc_external": {
          "ontology": {
            "id": 42,
            "levels": [
              "food"
            ]
          }
        },
        "dd_estimate": {
          "ontology": {
            "id": 42,
            "levels": [
              "food"
            ]
          }
        },
        "ee_validation": {
          "ontology": {
            "id": 42,
            "levels": [
              "food"
            ]
          }
        }
      }
    }
  ]
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status