chg: [website] Added missing per_page optional arguments to the sighting API endpoint.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions
MyPy / Python 3.11 sample (push) Waiting to run
MyPy / Python 3.12 sample (push) Waiting to run
MyPy / Python 3.10 sample (push) Waiting to run
API Test / Python 3.10 sample (push) Waiting to run
API Test / Python 3.11 sample (push) Waiting to run
API Test / Python 3.12 sample (push) Waiting to run
Models Tests / Python 3.10 sample (push) Waiting to run
Models Tests / Python 3.11 sample (push) Waiting to run
Models Tests / Python 3.12 sample (push) Waiting to run

This commit is contained in:
Cédric Bonhomme 2024-10-28 14:49:52 +01:00
parent 6ccbe8ec79
commit 8653173845
Signed by untrusted user who does not match committer: cedric
GPG key ID: A1CB94DE57B7A70D

View file

@ -51,6 +51,12 @@ parser.add_argument(
type=str, type=str,
help="Query for the meta JSON field. Example: meta=[{'tags': ['tcp']}]", help="Query for the meta JSON field. Example: meta=[{'tags': ['tcp']}]",
) )
parser.add_argument(
"per_page",
type=int,
default=10,
help="Number of elements to return.",
)
# Response marshalling # Response marshalling
bundle_params_model = { bundle_params_model = {