[
https://issues.apache.org/jira/browse/FINERACT-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danish Jamal updated FINERACT-1366:
-----------------------------------
Labels: client gsoc21 swagger (was: )
> invalid fields in PostClientsClientIdRequest in clientsApiResourceSwagger
> -------------------------------------------------------------------------
>
> Key: FINERACT-1366
> URL: https://issues.apache.org/jira/browse/FINERACT-1366
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Danish Jamal
> Assignee: Danish Jamal
> Priority: Major
> Labels: client, gsoc21, swagger
> Fix For: 1.5.0
>
>
> Expected body payload while activating the client:
> {code:java}
> {Â
> "activationDate": "02 August 2021",
> "dateFormat": "dd MMMM yyyy",
> "locale": "en"
> }
> {code}
> Payload model (PostClientsClientIdRequest):
> {code:java}
> @Schema(description = "PostClientsClientIdRequest")
> public static final class PostClientsClientIdRequest {
> private PostClientsClientIdRequest() {}
> @Schema(example = "We cannot accept transfers of clients having loans
> with less than 1 repayment left")
> public String note;
> }
> {code}
> the  PostClientsClientIdRequest must define the required field in order to
> generate the valid client.
> Also officeId field is missing in the returned response while activating a
> client.
> {code:java}
> // defined in swagger resource class
> @Schema(description = "PostClientsClientIdResponse")
> public static final class PostClientsClientIdResponse {
> private PostClientsClientIdResponse() {}
> @Schema(example = "2")
> public Integer clientId;
> @Schema(example = "2")
> public Integer resourceId;
> }
> // actual json returned
> {
> "officeId": 2,
> "clientId": 6,
> "resourceId": 6
> }{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)