- List out cases
GET '/cases?pageNumber=1&pageSize=20'
Will fetch you list of cases based of your params
- Fetch a Cases
GET '/cases/:id'
Success Response will hold the case which matches the id.
- Create a new case
POST '/cases'
- Edit a case
PUT '/cases/:id'
- Delete a case
DELETE '/cases/:id'
- Sorting
To get a sorted list of response you have to send the field to be sorted with the query.
GET 'cases?pageNumber=1&sort=Judge_asc'
GET 'cases?pageNumber=1&sort=Judge_dsc'
'asc' suffix for ascending and 'dsc' suffix for descending
There are similar endpoints for Plaintiffs and Defendants