]> git.openstreetmap.org Git - nominatim.git/commit
switch API parameters to keyword arguments
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 18 May 2023 15:42:23 +0000 (17:42 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 18 May 2023 15:42:23 +0000 (17:42 +0200)
commitbef5cea48e3ead13185e01958f7a3a80d185b11e
treebca54a4b2557944c40d0025323b749e4238d0a0d
parent8f88613a6b09745182b2d30709ee915be1a294ba
switch API parameters to keyword arguments

This switches the input parameters for API calls to a generic
keyword argument catch-all which is then loaded into a dataclass
where the parameters are checked and forwarded to internal
function.

The dataclass gives more flexibility with the parameters and makes
it easier to reuse common parameters for the different API calls.
nominatim/api/__init__.py
nominatim/api/core.py
nominatim/api/reverse.py
nominatim/api/types.py
nominatim/api/v1/server_glue.py
nominatim/clicmd/api.py
test/python/api/test_api_details.py
test/python/api/test_api_lookup.py
test/python/api/test_api_reverse.py
test/python/cli/test_cmd_api.py