Class DocumentsApi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteDocument(String id) Deletes a document Deletes one of the caller's documents; an administrator may delete any.private org.springframework.web.client.RestClient.ResponseSpecDeletes a document Deletes one of the caller's documents; an administrator may delete any.org.springframework.http.ResponseEntity<Void> Deletes a document Deletes one of the caller's documents; an administrator may delete any.org.springframework.web.client.RestClient.ResponseSpecDeletes a document Deletes one of the caller's documents; an administrator may delete any.Lists documents Lists the caller's documents; an administrator sees all.private org.springframework.web.client.RestClient.ResponseSpecLists documents Lists the caller's documents; an administrator sees all.org.springframework.http.ResponseEntity<List<DocumentResponse>> Lists documents Lists the caller's documents; an administrator sees all.org.springframework.web.client.RestClient.ResponseSpecLists documents Lists the caller's documents; an administrator sees all.voidsetApiClient(ApiClient apiClient)
-
Field Details
-
apiClient
-
-
Constructor Details
-
DocumentsApi
public DocumentsApi() -
DocumentsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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.RestClientResponseExceptionLists 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.RestClientResponseExceptionLists 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.RestClientResponseExceptionLists 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.RestClientResponseExceptionLists 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
-