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

(-)a/api/v1/swagger/definitions.json (+3 lines)
Lines 74-79 Link Here
74
  "patron_extended_attribute": {
74
  "patron_extended_attribute": {
75
    "$ref": "definitions/patron_extended_attribute.json"
75
    "$ref": "definitions/patron_extended_attribute.json"
76
  },
76
  },
77
  "patron_export": {
78
    "$ref": "definitions/patron_export.json"
79
  },
77
  "quote": {
80
  "quote": {
78
    "$ref": "definitions/quote.json"
81
    "$ref": "definitions/quote.json"
79
  },
82
  },
(-)a/api/v1/swagger/definitions/patron_export.json (+15 lines)
Line 0 Link Here
1
{
2
  "type": "array",
3
  "items": {
4
    "type": "object",
5
    "properties": {
6
      "data": {
7
        "type": "object"
8
      },
9
      "type": {
10
        "type": "string"
11
      }
12
    }
13
  },
14
  "additionalProperties": false
15
}
(-)a/api/v1/swagger/paths.json (+6 lines)
Lines 133-138 Link Here
133
  },
133
  },
134
  "/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": {
134
  "/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": {
135
    "$ref": "paths/patrons_extended_attributes.json#/~1patrons~1{patron_id}~1extended_attributes~1{extended_attribute_id}"
135
    "$ref": "paths/patrons_extended_attributes.json#/~1patrons~1{patron_id}~1extended_attributes~1{extended_attribute_id}"
136
  },
137
  "/patrons/{patron_id}/export": {
138
    "$ref": "paths/patrons_export.json#/~1patrons~1{patron_id}~1export"
136
  },
139
  },
137
   "/patrons/{patron_id}/holds": {
140
   "/patrons/{patron_id}/holds": {
138
    "$ref": "paths/patrons_holds.json#/~1patrons~1{patron_id}~1holds"
141
    "$ref": "paths/patrons_holds.json#/~1patrons~1{patron_id}~1holds"
Lines 161-166 Link Here
161
  "/public/biblios/{biblio_id}": {
164
  "/public/biblios/{biblio_id}": {
162
    "$ref": "paths/biblios.json#/~1public~1biblios~1{biblio_id}"
165
    "$ref": "paths/biblios.json#/~1public~1biblios~1{biblio_id}"
163
  },
166
  },
167
  "/public/patrons/{patron_id}/export": {
168
    "$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1export"
169
  },
164
  "/public/patrons/{patron_id}/password": {
170
  "/public/patrons/{patron_id}/password": {
165
    "$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1password"
171
    "$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1password"
166
  },
172
  },
(-)a/api/v1/swagger/paths/patrons_export.json (+68 lines)
Line 0 Link Here
1
{
2
  "/patrons/{patron_id}/export": {
3
    "get": {
4
      "x-mojo-to": "Patrons::Export#get",
5
      "operationId": "getPatronExport",
6
      "tags": [
7
        "patron"
8
      ],
9
      "parameters": [
10
        {
11
          "$ref": "../parameters.json#/patron_id_pp"
12
        },
13
        {
14
          "$ref": "../parameters.json#/page"
15
        },
16
        {
17
          "$ref": "../parameters.json#/per_page"
18
        }
19
      ],
20
      "produces": [
21
        "application/json"
22
      ],
23
      "responses": {
24
        "200": {
25
          "description": "Patron's data export",
26
          "schema": {
27
            "$ref": "../definitions.json#/patron_export"
28
          }
29
        },
30
        "401": {
31
          "description": "Authentication required",
32
          "schema": {
33
            "$ref": "../definitions.json#/error"
34
          }
35
        },
36
        "403": {
37
          "description": "Access forbidden",
38
          "schema": {
39
            "$ref": "../definitions.json#/error"
40
          }
41
        },
42
        "404": {
43
          "description": "Patron not found",
44
          "schema": {
45
            "$ref": "../definitions.json#/error"
46
          }
47
        },
48
        "500": {
49
          "description": "Internal server error",
50
          "schema": {
51
            "$ref": "../definitions.json#/error"
52
          }
53
        },
54
        "503": {
55
          "description": "Under maintenance",
56
          "schema": {
57
            "$ref": "../definitions.json#/error"
58
          }
59
        }
60
      },
61
      "x-koha-authorization": {
62
        "permissions": {
63
          "borrowers": "edit_borrowers"
64
        }
65
      }
66
    }
67
  }
68
}
(-)a/api/v1/swagger/paths/public_patrons.json (-1 / +67 lines)
Lines 1-4 Link Here
1
{
1
{
2
    "/public/patrons/{patron_id}/export": {
3
      "get": {
4
        "x-mojo-to": "Patrons::Export#get_public",
5
        "operationId": "getPublicPatronExport",
6
        "tags": [
7
          "patron"
8
        ],
9
        "parameters": [
10
          {
11
            "$ref": "../parameters.json#/patron_id_pp"
12
          },
13
          {
14
            "$ref": "../parameters.json#/page"
15
          },
16
          {
17
            "$ref": "../parameters.json#/per_page"
18
          }
19
        ],
20
        "produces": [
21
          "application/json"
22
        ],
23
        "responses": {
24
          "200": {
25
            "description": "Patron's data export",
26
            "schema": {
27
              "$ref": "../definitions.json#/patron_export"
28
            }
29
          },
30
          "401": {
31
            "description": "Authentication required",
32
            "schema": {
33
              "$ref": "../definitions.json#/error"
34
            }
35
          },
36
          "403": {
37
            "description": "Access forbidden",
38
            "schema": {
39
              "$ref": "../definitions.json#/error"
40
            }
41
          },
42
          "404": {
43
            "description": "Patron not found",
44
            "schema": {
45
              "$ref": "../definitions.json#/error"
46
            }
47
          },
48
          "500": {
49
            "description": "Internal server error",
50
            "schema": {
51
              "$ref": "../definitions.json#/error"
52
            }
53
          },
54
          "503": {
55
            "description": "Under maintenance",
56
            "schema": {
57
              "$ref": "../definitions.json#/error"
58
            }
59
          }
60
        },
61
        "x-koha-authorization": {
62
          "permissions": {
63
            "borrowers": "edit_borrowers"
64
          },
65
          "allow-owner": true
66
        }
67
      }
68
    },
2
    "/public/patrons/{patron_id}/password": {
69
    "/public/patrons/{patron_id}/password": {
3
        "post": {
70
        "post": {
4
            "x-mojo-to": "Patrons::Password#set_public",
71
            "x-mojo-to": "Patrons::Password#set_public",
5
- 

Return to bug 20028