mojaloop-specification icon indicating copy to clipboard operation
mojaloop-specification copied to clipboard

Change Request: updated query params, filters for settlement resources

Open partiallyordered opened this issue 3 years ago • 2 comments

Open API for FSP Interoperability - Change Request

Table of Contents

  • 1. Preface
    • 1.1 Change Request Information
    • 1.2 Document Version Information
  • 2. Problem Description
    • 2.1 Background
    • 2.2 Current Behaviour
    • 2.3 Requested Behaviour
  • 3 Proposed Solution Options

1. Preface

___

This section contains basic information regarding the change request.

1.1 Change Request Information

| Requested By | Matt Kingston | | Change Request Status | In review ☒ / Approved ☐ / Rejected ☐ | | Approved/Rejected Date | |

1.2 Document Version Information

Version Date Author Change Description
1.0 2021-11-05 Matt Kingston Initial version. Sent out for review.

2. Problem Description

___

2.1 Background

When retrieving settlement information, it is desirable to include multiple parameters in filters in order to more efficiently retrieve settlements.

2.2 Current Behaviour

In order to retrieve settlements containing multiple accounts, participants, states, or windows, a user must make multiple requests. Example:

GET /v2/settlements?accountId=1
GET /v2/settlements?accountId=2
GET /v2/settlements?accountId=3

2.3 Requested Behaviour

GET /v2/settlements?accountId=1,2,3

Should return the aggregated results that would have been returned from the current behaviour, when making three separate requests. Similarly with other query parameters.

3. Proposed Solution Options

https://github.com/mojaloop/central-settlement/pull/372

partiallyordered avatar Nov 05 '21 14:11 partiallyordered

@partiallyordered thanks for the CR. @mdebarros hoping you can add this to the Agenda for the next week SIG meeting..

elnyry-sam-k avatar Nov 05 '21 14:11 elnyry-sam-k

Attendees of the meeting on 2021-11-10 @ 14h00 GMT:

  • @elnyry-sam-k (Admin/Settlement API SIG Member)
  • @matdehaast (Guest)
  • @mdebarros(Admin/Settlement API SIG Member)
  • @MichaelJBRichards (Admin/Settlement API SIG Member)
  • @PaulGregoryBaker (Admin/Settlement API SIG Member)

Quorum has accepted this change and the proposed changes to the API Interface Spec for the Settlement's API by the following members:

  • @MichaelJBRichards
  • @PaulGregoryBaker
  • @elnyry-sam-k
  • @mdebarros

mdebarros avatar Nov 10 '21 14:11 mdebarros