Interface PigLatinApi

All Known Implementing Classes:
PigLatinController

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2024-03-17T12:36:21.716430+02:00[Europe/Riga]") @Validated public interface PigLatinApi
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<org.springframework.web.context.request.NativeWebRequest>
     
    default org.springframework.http.ResponseEntity<TranslationResponse>
    translate(@Valid TranslationRequest translationRequest)
    POST /pig-latin : Translate text to Pig Latin Translate English text to Pig Latin following the rules described in the [description](#/info/description).
  • Method Details

    • getRequest

      default Optional<org.springframework.web.context.request.NativeWebRequest> getRequest()
    • translate

      @RequestMapping(method=POST, value="/pig-latin", produces={"application/json","application/xml"}, consumes={"application/json","application/xml"}) default org.springframework.http.ResponseEntity<TranslationResponse> translate(@Valid @RequestBody @Valid TranslationRequest translationRequest)
      POST /pig-latin : Translate text to Pig Latin Translate English text to Pig Latin following the rules described in the [description](#/info/description).
      Parameters:
      translationRequest - (required)
      Returns:
      English sentence successfully translated into Pig Latin. (status code 200) or The request body is invalid. The response body contains the error message. (status code 400) or This cannot be translated into Pig Latin... (status code 418)