You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Petri Tuomola (Jira)" <ji...@apache.org> on 2021/09/21 13:47:00 UTC

[jira] [Resolved] (FINERACT-1366) invalid fields in PostClientsClientIdRequest in clientsApiResourceSwagger

     [ https://issues.apache.org/jira/browse/FINERACT-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Petri Tuomola resolved FINERACT-1366.
-------------------------------------
    Fix Version/s:     (was: 1.5.0)
                   1.6.0
       Resolution: Fixed

> 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, gsoc2021, swagger
>             Fix For: 1.6.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)