Interface QuotesAPI
- All Known Implementing Classes:
QuotesAPIClient
public interface QuotesAPI
This interface is an example of an HTTP-base API that performs content
negotiation between client and server. The "consumes" property indicates
which types the server is willing to accept. The "produces" property
indicates which types the service is willing to return. The client will
express a list of supported types, in priority order when calling the service.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<Void>> containsQuote
(int id) reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<QuoteDTO>> createQuote
(QuoteDTO quote) reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<Void>> reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<Void>> deleteQuote
(int id) reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<QuoteDTO>> getQuote
(int id) reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<QuoteListDTO>> reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<QuoteDTO>> reactor.core.publisher.Mono
<org.springframework.http.ResponseEntity<Void>> updateQuote
(int id, QuoteDTO quote)
-
Field Details
-
DATETIME_FORMAT
- See Also:
-
QUOTES_PATH
- See Also:
-
QUOTE_PATH
- See Also:
-
RANDOM_QUOTE_PATH
- See Also:
-
-
Method Details
-
createQuote
-
updateQuote
-
containsQuote
-
getQuote
-
randomQuote
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteDTO>> randomQuote() -
deleteQuote
-
deleteAllQuotes
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>> deleteAllQuotes() -
getQuotes
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<QuoteListDTO>> getQuotes(Integer offset, Integer limit)
-