FINERACT-1221 Fix Client SDK Broken Methods
FINERACT-1221 Fix Client SDK Broken Methods
This commit is contained in:
committed by
Arnold Gálovics
parent
25866edfc9
commit
a5f1dc1227
+1
-3
@@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import org.apache.fineract.client.util.FineractClient;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
@@ -34,10 +33,9 @@ import org.junit.jupiter.api.Test;
|
||||
public class FineractClientTechnicalTest {
|
||||
|
||||
@Test
|
||||
@Disabled("remove Ignore once https://issues.apache.org/jira/browse/FINERACT-1221 is fixed")
|
||||
void testInvalidOperations() {
|
||||
FineractClient.Builder builder = FineractClient.builder().baseURL("http://test/").tenant("default").basicAuth("mifos", "password");
|
||||
builder.getRetrofitBuilder().validateEagerly(true); // see FINERACT-1221
|
||||
builder.getRetrofitBuilder().validateEagerly(true);
|
||||
builder.build();
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -136,7 +136,6 @@ public class DelinquencyApiResource {
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(summary = "Update Delinquency Range based on the Id", description = "")
|
||||
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = DelinquencyApiResourceSwagger.PostDelinquencyRangeRequest.class)))
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = DelinquencyApiResourceSwagger.DeleteDelinquencyRangeResponse.class))) })
|
||||
public String deleteDelinquencyRange(
|
||||
@@ -219,7 +218,6 @@ public class DelinquencyApiResource {
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(summary = "Delete Delinquency Bucket based on the Id", description = "")
|
||||
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = DelinquencyApiResourceSwagger.PostDelinquencyBucketRequest.class)))
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = DelinquencyApiResourceSwagger.DeleteDelinquencyBucketResponse.class))) })
|
||||
public String deleteDelinquencyBucket(
|
||||
|
||||
+1
-1
@@ -125,7 +125,7 @@ public class EntityDatatableChecksApiResource {
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = EntityDatatableChecksApiResourceSwagger.DeleteEntityDatatableChecksTemplateResponse.class))) })
|
||||
public String deleteDatatable(
|
||||
@PathParam("entityDatatableCheckId") @Parameter(description = "entityDatatableCheckId") final long entityDatatableCheckId,
|
||||
final String apiRequestBodyAsJson) {
|
||||
@Parameter(hidden = true) final String apiRequestBodyAsJson) {
|
||||
|
||||
final CommandWrapper commandRequest = new CommandWrapperBuilder()
|
||||
.deleteEntityDatatableChecks(entityDatatableCheckId, apiRequestBodyAsJson).build();
|
||||
|
||||
-1
@@ -111,7 +111,6 @@ public class ReportMailingJobApiResource {
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(summary = "Delete a Report Mailing Job", description = "")
|
||||
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = ReportMailingJobApiResourceSwagger.DeleteReportMailingJobsRequest.class)))
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = ReportMailingJobApiResourceSwagger.DeleteReportMailingJobsResponse.class))) })
|
||||
public String deleteReportMailingJob(@PathParam("entityId") @Parameter(description = "entityId") final Long entityId,
|
||||
|
||||
-2
@@ -213,7 +213,6 @@ public class ClientsApiResource {
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(summary = "Delete a Client", description = "If a client is in Pending state, you are allowed to Delete it. The delete is a 'hard delete' and cannot be recovered from. Once clients become active or have loans or savings associated with them, you cannot delete the client but you may Close the client if they have left the program.")
|
||||
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = ClientsApiResourceSwagger.DeleteClientsClientIdRequest.class)))
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = ClientsApiResourceSwagger.DeleteClientsClientIdResponse.class))) })
|
||||
public String delete(@PathParam("clientId") @Parameter(description = "clientId") final Long clientId) {
|
||||
@@ -412,7 +411,6 @@ public class ClientsApiResource {
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
@Operation(summary = "Delete a Client", description = "If a client is in Pending state, you are allowed to Delete it. The delete is a 'hard delete' and cannot be recovered from. Once clients become active or have loans or savings associated with them, you cannot delete the client but you may Close the client if they have left the program.")
|
||||
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = ClientsApiResourceSwagger.DeleteClientsClientIdRequest.class)))
|
||||
@ApiResponses({
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = ClientsApiResourceSwagger.DeleteClientsClientIdResponse.class))) })
|
||||
public String delete(@PathParam("externalId") @Parameter(description = "externalId") final String externalId) {
|
||||
|
||||
@@ -6489,9 +6489,6 @@ DELETE https://DomainName/api/v1/clients/{clientId}
|
||||
<code class="method-request">
|
||||
DELETE clients/3
|
||||
Content-Type: application/json
|
||||
Request Body:
|
||||
{
|
||||
}
|
||||
</code>
|
||||
<code class="method-response">
|
||||
{
|
||||
@@ -38958,9 +38955,6 @@ DELETE https://DomainName/api/v1/reportmailingjobs/{id}
|
||||
<code class="method-request">
|
||||
DELETE reportmailingjobs/1
|
||||
Content-Type: application/json
|
||||
Request Body:
|
||||
{
|
||||
}
|
||||
</code>
|
||||
<code class="method-response">
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user