Browse Source

Bug 29620: (follow-up) Rename remaining old-style parameters

The first routes we added named parameters in camelCase. We moved to
snake_case really fast, but there are two that were kept by mistake.

This patch fixes them.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
master
Tomas Cohen Arazi 2 months ago
committed by Fridolin Somers
parent
commit
3ba74940ee
  1. 8
      api/v1/swagger/parameters.yaml
  2. 2
      api/v1/swagger/parameters/fund.yaml
  3. 2
      api/v1/swagger/parameters/vendor.yaml
  4. 6
      api/v1/swagger/paths/acquisitions_vendors.yaml

8
api/v1/swagger/parameters.yaml

@ -13,8 +13,8 @@ city_id_pp:
$ref: parameters/city.yaml#/city_id_pp
club_id_pp:
$ref: parameters/club.yaml#/club_id_pp
fundidPathParam:
$ref: parameters/fund.yaml#/fundidPathParam
fund_id_pp:
$ref: parameters/fund.yaml#/fund_id_pp
hold_id_pp:
$ref: parameters/hold.yaml#/hold_id_pp
import_batch_profile_id_pp:
@ -92,5 +92,5 @@ suggestion_id_pp:
$ref: parameters/suggestion.yaml#/suggestion_id_pp
transfer_limit_id_pp:
$ref: parameters/transfer_limit.yaml#/transfer_limit_id_pp
vendoridPathParam:
$ref: parameters/vendor.yaml#/vendoridPathParam
vendor_id_pp:
$ref: parameters/vendor.yaml#/vendor_id_pp

2
api/v1/swagger/parameters/fund.yaml

@ -1,5 +1,5 @@
---
fundidPathParam:
fund_id_pp:
name: fund_id
in: path
description: Fund id

2
api/v1/swagger/parameters/vendor.yaml

@ -1,5 +1,5 @@
---
vendoridPathParam:
vendor_id_pp:
name: vendor_id
in: path
description: Vendor id

6
api/v1/swagger/paths/acquisitions_vendors.yaml

@ -107,7 +107,7 @@
- vendors
summary: Get vendor
parameters:
- $ref: ../parameters.yaml#/vendoridPathParam
- $ref: ../parameters.yaml#/vendor_id_pp
produces:
- application/json
responses:
@ -145,7 +145,7 @@
- vendors
summary: Update vendor
parameters:
- $ref: ../parameters.yaml#/vendoridPathParam
- $ref: ../parameters.yaml#/vendor_id_pp
- name: body
in: body
description: A JSON object representing a vendor
@ -189,7 +189,7 @@
- vendors
summary: Delete vendor
parameters:
- $ref: ../parameters.yaml#/vendoridPathParam
- $ref: ../parameters.yaml#/vendor_id_pp
produces:
- application/json
responses:

Loading…
Cancel
Save