public class StringCorrectionsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
StringCorrectionsApi(Credentials credentials) |
StringCorrectionsApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<Correction> |
addCorrection(java.lang.Long projectId,
AddCorrectionRequest request) |
void |
deleteCorrection(java.lang.Long projectId,
java.lang.Long correctionId) |
void |
deleteCorrections(java.lang.Long projectId,
java.lang.Long stringId) |
ResponseObject<Correction> |
getCorrection(java.lang.Long projectId,
java.lang.Long correctionId) |
ResponseList<Correction> |
listCorrections(java.lang.Long projectId,
ListCorrectionsQueryParams params) |
ResponseObject<Correction> |
restoreCorrection(java.lang.Long projectId,
java.lang.Long correctionId) |
graphql, graphqlpublic StringCorrectionsApi(Credentials credentials)
public StringCorrectionsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Correction> listCorrections(java.lang.Long projectId, ListCorrectionsQueryParams params) throws HttpException, HttpBadRequestException
projectId - project identifierparams - query paramsHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Correction> addCorrection(java.lang.Long projectId, AddCorrectionRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Correction> getCorrection(java.lang.Long projectId, java.lang.Long correctionId) throws HttpException, HttpBadRequestException
projectId - project identifiercorrectionId - correction identifierHttpExceptionHttpBadRequestExceptionpublic void deleteCorrections(java.lang.Long projectId,
java.lang.Long stringId)
throws HttpException,
HttpBadRequestException
projectId - project identifierstringId - string identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Correction> restoreCorrection(java.lang.Long projectId, java.lang.Long correctionId) throws HttpException, HttpBadRequestException
projectId - project identifiercorrectionId - correction identifierHttpExceptionHttpBadRequestExceptionpublic void deleteCorrection(java.lang.Long projectId,
java.lang.Long correctionId)
throws HttpException,
HttpBadRequestException
projectId - project identifiercorrectionId - correction identifierHttpExceptionHttpBadRequestException