Find All Calory

GET/api/Calory/Public/FindAllCalory

Retrieve a list of all calorie entries


For More Details
View Badge User

Usage and SDK Samples

Paramter Info

PARAMS Type Required
No Parameters - -

RESPONSES

The request was successful, and the server responded with the requested data.

Request :-
Query Params
Method Endpoint QueryParameters
GET /api/Calory/FindAllCalory Not required
Response :-
Content type-Application/json
[
{
  "id": 1,
  "caloriesNumber": "5",
  "quantity": 10,
  "unitId": 1,
  "unitName": "kilogram"
},
{
  "id": 2,
  "caloriesNumber": "6",
  "quantity": 15,
  "unitId": 1,
  "unitName": "kilogram"
},
{
  "id": 3,
  "caloriesNumber": "7",
  "quantity": 20,
  "unitId": 1,
  "unitName": "kilogram"
},
{
  "id": 4,
  "caloriesNumber": "8",
  "quantity": 30,
  "unitId": 1,
  "unitName": "kilogram"
}
]                  
                        
                                            						   

The request was successful, but there is no content to send in the response. add one more response

Request :-
Query Params
Method Endpoint QueryParameters
GET /api/Calory/FindAllCalory Not required
Response :-
Content type-Application/json

                          
Response body is empty
                        
                                            						   

The request could not be understood or was missing required parameters.

Request :-
Query Params
Method Endpoint QueryParameters
GET /api/Calory/FindAllCalory Not required
Response :-
Content type-Application/json

{
  "error": {
    "message": "Invalid request parameters.",
    "code": "400",
    "details": "The query parameter 'invalidParam' is not recognized or Check the URL. Please check the API documentation for valid parameters and URL."
  }
}
                                            						   

Authentication failed or the user does not have the necessary permissions.

Request :-
Query Params
Method Endpoint QueryParameters
GET /api/Calory/FindAllCalory Not required
Response :-
Content type-Application/json

{
  "error": {
    "message": "Authentication required.",
    "code": "401",
    "details": "The request did not include a valid authentication token. Please provide a valid 'Authorization' header with a bearer token."
  }
}                        
                                            						   

The requested resource could not be found on the server

Request :-
Query Params
Method Endpoint QueryParameters
GET /api/Calory/FindAllCalory Not required
Response :-
Content type-Application/json

{
  "error": {
    "message": "No calorie records found.",
    "code": "404",
    "details": "The system could not find any records related to calorie data. Please ensure that there is data available in the system."
  }
}
                                            						   

An unexpected server error occurred while processing the request.

Request :-
Query Params
Method Endpoint QueryParameters
GET /api/Calory/FindAllCalory Not required
Response :-
Content type-Application/json

{
  "error": {
    "message": "An unexpected error occurred on the server.",
    "code": "500",
    "details": "The server encountered an internal error while processing your request. Please try again later or contact support if the issue persists."
  }
}