Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an api to fetch serviceRequests based on workflow ID #73

Open
kartikay101 opened this issue Oct 29, 2020 · 1 comment
Open

Create an api to fetch serviceRequests based on workflow ID #73

kartikay101 opened this issue Oct 29, 2020 · 1 comment
Labels
backend enhancement New feature or request

Comments

@kartikay101
Copy link
Member

Describe the solution you'd like
An API endpoint to fetch all the Service Requests related to a workflow depending on the workflow ID
Example {host}/serviceRequests/id/{workflowID}?pagination&sortFields

@kartikay101 kartikay101 added backend enhancement New feature or request labels Oct 29, 2020
@sivachandran
Copy link
Contributor

I suggest we change the serviceRequests API like below. Treating service requests collection as the resource, the API would cater to filter the service requests by workflow name or id. In addition, the change would also allow us to pass more than one workflow name and id and even allow mixing them.

GET /serviceRequests?workflowName=insurance_claim_demo_v1&workflowName=insurance_claim_demo_v2
GET /serviceRequests?workflowId=1&workflowId=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants