Commit d68901f6 authored by David Foucher's avatar David Foucher

Merge branch 'rename-endpoint-remu' into 'master'

Rename remuneration endpoint to remuneration-aide

See merge request !60
parents 8fa9c499 291adc61
Pipeline #3270 passed with stages
in 6 minutes and 59 seconds
...@@ -67,7 +67,7 @@ async def test_remuneration_endpoint(client): ...@@ -67,7 +67,7 @@ async def test_remuneration_endpoint(client):
spec = create_spec(json.loads(resp.body)) spec = create_spec(json.loads(resp.body))
resp = await client.post( resp = await client.post(
"/remuneration", "/remuneration-aide",
body={ body={
"beneficiaire.age": 20, "beneficiaire.age": 20,
"formation.region": 27, "formation.region": 27,
......
...@@ -97,7 +97,7 @@ async def simulate_(request, response): ...@@ -97,7 +97,7 @@ async def simulate_(request, response):
# TODO : add pointer error for bad region number + test # TODO : add pointer error for bad region number + test
@app.route("/remuneration", methods=["POST"]) @app.route("/remuneration-aide", methods=["POST"])
async def remuneration_(request, response): async def remuneration_(request, response):
context = request.json context = request.json
remunerations = get_remunerations(tags=request.query.list("tags", [])) remunerations = get_remunerations(tags=request.query.list("tags", []))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment