So in Server class the get_records() method defaults limit and offset to 1 and 100
(def get_records(self, offset: int = 1, limit: int = 100,...)
Problem is I have a queue layout which may have no records by design
GET
https://server.com/fmi/data/v1/databases/db_name/layouts/queue_layout/records
If I send the default offset of 1, I get this (http status code 500)
{
"messages": [
{
"code": "101",
"message": "Record is missing"
}
],
"response": {}
}
Offset is kinda optional but as it has a default it still sends the param of 1. I tried 'None' but offset requires an int of course and has to be greater than zero.
The above fails my pytest tests.
My request is, please can '_offset' be made optional in the get_records method header like sort, portals, etc.
So in Server class the get_records() method defaults limit and offset to 1 and 100
(def get_records(self, offset: int = 1, limit: int = 100,...)
Problem is I have a queue layout which may have no records by design
GET
https://server.com/fmi/data/v1/databases/db_name/layouts/queue_layout/records
If I send the default offset of 1, I get this (http status code 500)
{
"messages": [
{
"code": "101",
"message": "Record is missing"
}
],
"response": {}
}
Offset is kinda optional but as it has a default it still sends the param of 1. I tried 'None' but offset requires an int of course and has to be greater than zero.
The above fails my pytest tests.
My request is, please can '_offset' be made optional in the get_records method header like sort, portals, etc.