[
https://issues.apache.org/jira/browse/FINERACT-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17395193#comment-17395193
]
Danish Jamal commented on FINERACT-1366:
----------------------------------------
[~Grandolf49] and [~edcable] please take a look.
> 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
>
> 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)