Cyberwatch / cyberwatch_api

Python Api client for the Cyberwatch software
MIT License
4 stars 6 forks source link

Fix parameter parsing in the endpoint URL #31

Closed aaTarek closed 1 year ago

aaTarek commented 1 year ago

The 'clear_endpoint' was only parsing the {id} parameter in the endpoint url if present. Some routes will also need different parameters to be set, like {cve_code}.

This merge would find every {parameter} in the endpoint url and parse it to the corresponding existing value in 'params' or 'body_params'

This would now work : image