File size: 2,670 Bytes
73f5fe7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from fastapi import FastAPI

app = FastAPI(docs_url="/")

@app.get("/dog-range")
def dog_info_endpoint(breed: str):
    breed_info = {
        "Australian Shepherd": {"weight": "40-65 lbs", "height": "18-23 inches"},
        "Basset Hound": {"weight": "40-65 lbs", "height": "14-15 inches"},
        "Bernedoodles": {"weight": "70-90 lbs", "height": "23-29 inches"},
        "Bichon Frise": {"weight": "10-18 lbs", "height": "9.5-11.5 inches"},
        "Boston Terrier": {"weight": "12-25 lbs", "height": "12-17 inches"},
        "Boxer": {"weight": "50-70 lbs", "height": "21-25 inches"},
        "Boykin Spaniel": {"weight": "25-40 lbs", "height": "14-18 inches"},
        "Cairn Terrier": {"weight": "13-18 lbs", "height": "9-13 inches"},
        "Cane Corso": {"weight": "90-110 lbs", "height": "23.5-27.5 inches"},
        "Catahoula Leopards": {"weight": "50-95 lbs", "height": "20-26 inches"},
        "Chihuahua": {"weight": "2-6 lbs", "height": "5-8 inches"},
        "Corgi": {"weight": "25-30 lbs", "height": "10-12 inches"},
        "Dachshund": {"weight": "11-32 lbs", "height": "8-9 inches"},
        "Doberman Pinscher": {"weight": "60-100 lbs", "height": "24-28 inches"},
        "French Bulldog": {"weight": "16-28 lbs", "height": "11-12 inches"},
        "German Shepherd": {"weight": "50-90 lbs", "height": "22-26 inches"},
        "Golden Retriever": {"weight": "55-75 lbs", "height": "21.5-24 inches"},
        "Goldendoodle": {"weight": "50-90 lbs", "height": "20-24 inches"},
        "Havanese": {"weight": "7-13 lbs", "height": "8.5-11.5 inches"},
        "Jack Russels": {"weight": "14-18 lbs", "height": "10-12 inches"},
        "Labradoodle": {"weight": "50-65 lbs", "height": "21-24 inches"},
        "Labrador Retrievers": {"weight": "55-80 lbs", "height": "21.5-24.5 inches"},
        "Maltese": {"weight": "4-7 lbs", "height": "7-9 inches"},
        "Miniature Schnauzer": {"weight": "11-20 lbs", "height": "12-14 inches"},
        "Pitbull": {"weight": "30-85 lbs", "height": "17-21 inches"},
        "Pomeranian": {"weight": "3-7 lbs", "height": "7-12 inches"},
        "Rottweiler": {"weight": "80-135 lbs", "height": "22-27 inches"},
        "Shiba Inu": {"weight": "17-23 lbs", "height": "13.5-16.5 inches"},
        "Siberian Husky": {"weight": "35-60 lbs", "height": "20-23.5 inches"},
        "Weimaraners": {"weight": "55-90 lbs", "height": "23-27 inches"},
        "Vizsla": {"weight": "40-65 lbs", "height": "21-24 inches"},
        "Yorkie": {"weight": "4-7 lbs", "height": "7-8 inches"}
    }

    if breed in breed_info:
        return breed_info[breed]
    else:
        return {"error": "Breed information not available."}