API Endpoint: Search for Dog Breeds
Endpoint
/api/breeds/search?q=[string]
Example Request
GET /api/breeds/search?q=bulldogarray of object like this.
[
...
]
Method
GET
URL Parameters
q=[string]
: The breed of the dog to search for.
Success Response
- Code:
200 OK
- Content: A JSON object containing a list of breeds that match the search query.
Error Response
- Code:
400 Bad Request
- Content: An error message indicating that the search query is missing or invalid.
Notes
If the search query does not match any breeds, an empty list will be returned.
The search is case-insensitive and returns breeds that contain the search query in any part of their name.