Skip to content

This API allows users to check whether a specific human food is safe or toxic for dogs to consume.

Notifications You must be signed in to change notification settings

NicoletaSerban/dogFoodApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dog Food API

This API allows users to check whether a specific human food is safe or toxic for dogs to consume.

Usage

  • Pet owners who want to know if a certain human food is safe to give to their dog as a treat;
  • Pet food companies that want to ensure the ingredients they use in their products are safe for dogs;
  • Veterinarians and animal welfare organizations that want to provide information about safe and toxic foods for dogs;
  • App and website developers who want to integrate a food safety feature for dogs into their platform.

Endpoints

'GET /api/{foodName}'

This endpoint returns information about a specific food and whether it is safe or toxic for dogs to consume.

'GET /api/banana'

Example Request

A GET request to the endpoint https://dog-food-api.onrender.com/api/taro will return the following response:

App Screenshot

Example Response

The API returns a JSON object with the following properties:

  • name (string): The name of the food that was queried.
  • toxic (string): Indicates whether the food is toxic for dogs to eat.
  • dafe (string): Indicates whether the food is safe for dogs to eat.
  • obs (string): Additional information about the food and why it is or is not safe for dogs to eat.

About

This API allows users to check whether a specific human food is safe or toxic for dogs to consume.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published