java.lang.Object
com.irurueta.authserver.bff.infrastructure.resourceserver.v1.generated.api.DocumentsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.27.0") public class DocumentsApi extends Object
  • Field Details

  • Constructor Details

    • DocumentsApi

      public DocumentsApi()
    • DocumentsApi

      public DocumentsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • deleteDocumentRequestCreation

      private org.springframework.web.client.RestClient.ResponseSpec deleteDocumentRequestCreation(@Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Deletes a document Deletes one of the caller's documents; an administrator may delete any. Needs scope documents.delete and a recent strong authentication (RFC 9470). Someone else's document is answered 404, like a missing one.

      204 - The document was deleted.

      401 - Missing or invalid bearer token, or (RFC 9470) a valid token that does not prove a recent enough strong authentication: its acr claim is not the required one or its auth_time is older than the maximum age. The client must send the user through the authorization server again, asking for the acr_values and max_age of the challenge.

      403 - The token lacks the documents.delete scope.

      404 - The document does not exist or belongs to someone else.

      Parameters:
      id - Unique identifier of the document.
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • deleteDocument

      public void deleteDocument(@Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Deletes a document Deletes one of the caller's documents; an administrator may delete any. Needs scope documents.delete and a recent strong authentication (RFC 9470). Someone else's document is answered 404, like a missing one.

      204 - The document was deleted.

      401 - Missing or invalid bearer token, or (RFC 9470) a valid token that does not prove a recent enough strong authentication: its acr claim is not the required one or its auth_time is older than the maximum age. The client must send the user through the authorization server again, asking for the acr_values and max_age of the challenge.

      403 - The token lacks the documents.delete scope.

      404 - The document does not exist or belongs to someone else.

      Parameters:
      id - Unique identifier of the document.
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • deleteDocumentWithHttpInfo

      public org.springframework.http.ResponseEntity<Void> deleteDocumentWithHttpInfo(@Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Deletes a document Deletes one of the caller's documents; an administrator may delete any. Needs scope documents.delete and a recent strong authentication (RFC 9470). Someone else's document is answered 404, like a missing one.

      204 - The document was deleted.

      401 - Missing or invalid bearer token, or (RFC 9470) a valid token that does not prove a recent enough strong authentication: its acr claim is not the required one or its auth_time is older than the maximum age. The client must send the user through the authorization server again, asking for the acr_values and max_age of the challenge.

      403 - The token lacks the documents.delete scope.

      404 - The document does not exist or belongs to someone else.

      Parameters:
      id - Unique identifier of the document.
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • deleteDocumentWithResponseSpec

      public org.springframework.web.client.RestClient.ResponseSpec deleteDocumentWithResponseSpec(@Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Deletes a document Deletes one of the caller's documents; an administrator may delete any. Needs scope documents.delete and a recent strong authentication (RFC 9470). Someone else's document is answered 404, like a missing one.

      204 - The document was deleted.

      401 - Missing or invalid bearer token, or (RFC 9470) a valid token that does not prove a recent enough strong authentication: its acr claim is not the required one or its auth_time is older than the maximum age. The client must send the user through the authorization server again, asking for the acr_values and max_age of the challenge.

      403 - The token lacks the documents.delete scope.

      404 - The document does not exist or belongs to someone else.

      Parameters:
      id - Unique identifier of the document.
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • listDocumentsRequestCreation

      private org.springframework.web.client.RestClient.ResponseSpec listDocumentsRequestCreation() throws org.springframework.web.client.RestClientResponseException
      Lists documents Lists the caller's documents; an administrator sees all. Needs scope documents.read.

      200 - The documents.

      401 - Missing or invalid bearer token.

      403 - The token lacks the documents.read scope.

      Returns:
      List<DocumentResponse>
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • listDocuments

      public List<DocumentResponse> listDocuments() throws org.springframework.web.client.RestClientResponseException
      Lists documents Lists the caller's documents; an administrator sees all. Needs scope documents.read.

      200 - The documents.

      401 - Missing or invalid bearer token.

      403 - The token lacks the documents.read scope.

      Returns:
      List<DocumentResponse>
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • listDocumentsWithHttpInfo

      public org.springframework.http.ResponseEntity<List<DocumentResponse>> listDocumentsWithHttpInfo() throws org.springframework.web.client.RestClientResponseException
      Lists documents Lists the caller's documents; an administrator sees all. Needs scope documents.read.

      200 - The documents.

      401 - Missing or invalid bearer token.

      403 - The token lacks the documents.read scope.

      Returns:
      ResponseEntity<List<DocumentResponse>>
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • listDocumentsWithResponseSpec

      public org.springframework.web.client.RestClient.ResponseSpec listDocumentsWithResponseSpec() throws org.springframework.web.client.RestClientResponseException
      Lists documents Lists the caller's documents; an administrator sees all. Needs scope documents.read.

      200 - The documents.

      401 - Missing or invalid bearer token.

      403 - The token lacks the documents.read scope.

      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API