PetCare
REST API server to store and retrieve information about your pets.
Usage
Pet structure
Name Name `json:"name"`
Species Species `json:"species"`
Breed Breed `json:"breed,omitempty"`
Size Size `json:"size,omitempty"`
Date Date `json:"date,omitempty"`
Weight Weight `json:"weight,omitempty"`
Every attribute of the Pet struct is converted to lower case.
Pet endpoints
- /api/pet/{name} GET: retrieve the information of name
- /api/pet/ POST: store the information of your new pet
- /api/pet/{name} PUT: update some or all attributes of name
- /api/pet/{name} DELETE: delete name from your stored pets
Pets endpoints
- /api/pets GET: retrieve the information of all your stored pets
Food endpoints
- /api/food/{name} GET: get the suggested food to feed name