wormhole-explorer/api/middleware
agodnic dde87acf84
[API] Several fixes related to pagination (#144)
### Summary
* On all endpoints, fix the behavior of the `page` parameter (which was previously being ignored).
* On `GET /api/v1/vaas`, fix the behavior of the `sortBy` parameter (which wasn't working when `parsedPayload=true`).
* For all endpoints, validate the query parameters `page`, `pageNumber` and `sortOrder`.
* Return descriptive errors when pagination-related parameters happen to be invalid (`page`, `pageSize`, `sortOrder`).
* Validate guardian addresses in query params.

### Testing plan
All parameters involved were manually tested.
2023-02-09 14:28:39 -03:00
..
error_handler.go Feature/refactor api (#34) 2022-11-23 09:06:29 -03:00
extract_pagination.go [API] Several fixes related to pagination (#144) 2023-02-09 14:28:39 -03:00
extract_parameters.go [API] Several fixes related to pagination (#144) 2023-02-09 14:28:39 -03:00