Quotes

Quotes API can be used to get a random quote, or a quote by a specific author.


Get a random quote

To get a random quote, send a GET request to the following endpoint:
https://dotnet-rest-api.fly.dev/quotes/random
The server will respond with a 200 OK status code, and a JSON object containing the following fields:


{
 "id": 123
 "quote": "your quote"
 "author": "your author"
 "tag": "quotes tag"
}

Get a quote by author

To get a quote by author, send a GET request to the following endpoint:
https://dotnet-rest-api.fly.dev/quotes/author/{author}
The server will respond with a 200 OK status code, and a JSON object containing an array of quotes matched by the given author. Quote strucute is the same as in the previous example.


Get a quote by its identifier

To get a quote by its identifier, send a GET request to the following endpoint:
https://dotnet-rest-api.fly.dev/quotes/{id}
The server will respond with a 200 OK status code, and a JSON object containing the quote matched by the given id. Quote strucute is the same as in the previous example.


Get a list of all possible tags

To get a list of possible tags, send a GET request to the following endpoint:
https://dotnet-rest-api.fly.dev/quotes/tags
The server will respond with a 200 OK status code, and a JSON object containing an array of tags.

  • Found here:
  • - Quotes
  • - Random quote
  • - Quote by author
  • - Quote by id
  • - List of tags