View | Details | Raw Unified | Return to bug 10190
Collapse All | Expand All

(-)a/api/v1/swagger/paths/circulation_rules.yaml (-4 / +12 lines)
Lines 9-14 Link Here
9
    produces:
9
    produces:
10
      - application/json
10
      - application/json
11
    parameters:
11
    parameters:
12
      - $ref: "../swagger.yaml#/parameters/match"
13
      - $ref: "../swagger.yaml#/parameters/order_by"
14
      - $ref: "../swagger.yaml#/parameters/page"
15
      - $ref: "../swagger.yaml#/parameters/per_page"
16
      - $ref: "../swagger.yaml#/parameters/q_param"
17
      - $ref: "../swagger.yaml#/parameters/q_body"
18
      - $ref: "../swagger.yaml#/parameters/request_id_header"
12
      - name: effective
19
      - name: effective
13
        in: query
20
        in: query
14
        description: Boolean indicating whether to return effective rules or all rules. Defaults to true.
21
        description: Boolean indicating whether to return effective rules or all rules. Defaults to true.
Lines 42-48 Link Here
42
          items:
49
          items:
43
            $ref: "../swagger.yaml#/definitions/circulation_rules"
50
            $ref: "../swagger.yaml#/definitions/circulation_rules"
44
      "400":
51
      "400":
45
        description: Bad request
52
        description: |
53
          Bad request. Possible `error_code` attribute values:
54
55
            * `invalid_query`
46
        schema:
56
        schema:
47
          $ref: "../swagger.yaml#/definitions/error"
57
          $ref: "../swagger.yaml#/definitions/error"
48
      "401":
58
      "401":
Lines 91-98 Link Here
91
          items:
101
          items:
92
            $ref: "../swagger.yaml#/definitions/circulation_rules"
102
            $ref: "../swagger.yaml#/definitions/circulation_rules"
93
      "400":
103
      "400":
94
        description: |
104
        description: Bad request
95
          Bad request.
96
        schema:
105
        schema:
97
          $ref: "../swagger.yaml#/definitions/error"
106
          $ref: "../swagger.yaml#/definitions/error"
98
      "403":
107
      "403":
99
- 

Return to bug 10190