GET /api/dogs/id/
This endpoint will:
- retrieve a dog with info and two photos
- compare altered and unaltered photos
Request:
GET https://nifty-dogs-api.herokuapp.com/api/dogs/4/
Response:
{
"id": 50,
"breed": "springer",
"sub_breed": "english",
"original_url": "https://images.dog.ceo/breeds/springer-english/n02102040_5096.jpg",
"transformed_url":
"https://ik.imagekit.io/rfxlfa3n0/tr:ot-Dog%20Breed%20springer,ots-45,otbg-white/https://images.dog.ceo/breeds/springer-english/n02102040_5096.jpg",
"unique_photo_id": "n02102040_5096",
"metadata": {
"exif": {},
"size": 38538,
"pHash": "7eadabaeb1a9a33a",
"width": 500,
"format": "jpg",
"height": 334,
"density": 72,
"quality": 0,
"hasColorProfile": false,
"hasTransparency": false
},
"created_at": "2022-12-13T01:56:17.584146Z",
"updated_at": "2022-12-13T01:56:17.584165Z"
}
DELETE /api/dogs/id/
This endpoint will:
- delete the dog in the database
Request:
DELETE https://nifty-dogs-api.herokuapp.com/api/keys/
Response:
{'message': 'Doggie Photo was deleted successfully!'}