We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Keyword `type` gets overwritten
Motivation
----------
The keyword `type` in identities.py gets overwritten, this is a bad practice.
https://github.com/rucio/rucio/blob/1b68bbf6d44013b193db3f668b1e4b608e488bce/lib/rucio/web/rest/flaskapi/v1/identities.py#L134

Modification
------------
Use another variable name.
Keyword `type` gets overwritten
Motivation
----------
The keyword `type` in identities.py gets overwritten, this is a bad practice.
https://github.com/rucio/rucio/blob/1b68bbf6d44013b193db3f668b1e4b608e488bce/lib/rucio/web/rest/flaskapi/v1/identities.py#L134

Modification
------------
Use another variable name.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `lib/rucio/web/rest/flaskapi/v1/identities.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 # Copyright European Organization for Nuclear Research (CERN) since 2012
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 
16 from flask import Flask, request, jsonify
17 
18 from rucio.api.identity import add_identity, add_account_identity, list_accounts_for_identity
19 from rucio.web.rest.flaskapi.v1.common import response_headers, check_accept_header_wrapper_flask, \
20     ErrorHandlingMethodView
21 from rucio.web.rest.flaskapi.authenticated_bp import AuthenticatedBlueprint
22 
23 
24 class UserPass(ErrorHandlingMethodView):
25     """ Manage a username/password identity for an account. """
26 
27     def put(self, account):
28         """
29         ---
30         summary: Create UserPass identity
31         description: Creates a new UserPass identity and maps it to an account.
32         tags:
33           - Identity
34         parameters:
35         - name: account
36           in: path
37           description: The account for the identity.
38           schema:
39             type: string
40           style: simple
41         - name: X-Rucio-Username
42           in: query
43           description: Username for the identity.
44           schema:
45             type: string
46           style: simple
47           required: true
48         - name: X-Rucio-Password
49           in: query
50           description: The password for the identity.
51           schema:
52             type: string
53           style: simple
54           required: true
55         - name: X-Rucio-Email
56           in: query
57           description: The email for the identity.
58           schema:
59             type: string
60           style: simple
61           required: false
62         responses:
63           201:
64             description: OK
65             content:
66               application/json:
67                 schema:
68                   type: string
69                   enum: ['Created']
70           401:
71             description: Invalid Auth Token
72           400:
73             description: Missing username or password.
74         """
75         username = request.headers.get('X-Rucio-Username', default=None)
76         password = request.headers.get('X-Rucio-Password', default=None)
77         email = request.headers.get('X-Rucio-Email', default=None)
78 
79         if not username or not password:
80             return 'Username and Password must be set.', 400
81 
82         add_identity(username, 'userpass', email, password)
83 
84         add_account_identity(
85             identity_key=username,
86             id_type='userpass',
87             account=account,
88             email=email,
89             password=password,
90             issuer=request.environ.get('issuer'),
91             vo=request.environ.get('vo'),
92         )
93 
94         return 'Created', 201
95 
96 
97 class X509(ErrorHandlingMethodView):
98     """ Manage an x509 identity for an account. """
99 
100     def put(self, account):
101         """
102         ---
103         summary: Create X509 identity
104         description: Creates a new X509 identity and maps it to an account.
105         tags:
106           - Identity
107         parameters:
108         - name: account
109           in: path
110           description: The account for the identity.
111           schema:
112             type: string
113           style: simple
114         - name: X-Rucio-Email
115           in: query
116           description: The email for the identity.
117           schema:
118             type: string
119           style: simple
120           required: false
121         responses:
122           201:
123             description: OK
124             content:
125               application/json:
126                 schema:
127                   type: string
128                   enum: ['Created']
129           401:
130             description: Invalid Auth Token
131         """
132         dn = request.environ.get('SSL_CLIENT_S_DN')
133         email = request.headers.get('X-Rucio-Email', default=None)
134 
135         add_identity(dn, 'x509', email=email)
136         add_account_identity(
137             identity_key=dn,
138             id_type='x509',
139             account=account,
140             email=email,
141             issuer=request.environ.get('issuer'),
142             vo=request.environ.get('vo'),
143         )
144 
145         return 'Created', 201
146 
147 
148 class GSS(ErrorHandlingMethodView):
149     """ Manage a GSS identity for an account. """
150 
151     def put(self, account):
152         """
153         ---
154         summary: Create GSS identity
155         description: Creates a new GSS identity and maps it to an account.
156         tags:
157           - Identity
158         parameters:
159         - name: account
160           in: path
161           description: The account for the identity.
162           schema:
163             type: string
164           style: simple
165         - name: X-Rucio-Email
166           in: query
167           description: The email for the identity.
168           schema:
169             type: string
170           style: simple
171           required: false
172         responses:
173           201:
174             description: OK
175             content:
176               application/json:
177                 schema:
178                   type: string
179                   enum: ['Created']
180           401:
181             description: Invalid Auth Token
182         """
183         gsscred = request.environ.get('REMOTE_USER')
184         email = request.headers.get('X-Rucio-Email', default=None)
185 
186         add_identity(gsscred, 'gss', email=email)
187         add_account_identity(
188             identity_key=gsscred,
189             id_type='gss',
190             account=account,
191             email=email,
192             issuer=request.environ.get('issuer'),
193             vo=request.environ.get('vo'),
194         )
195 
196         return 'Created', 201
197 
198 
199 class Accounts(ErrorHandlingMethodView):
200     """ Retrieve list of accounts mapped to an identity. """
201 
202     @check_accept_header_wrapper_flask(['application/json'])
203     def get(self, identity_key, type):
204         """
205         ---
206         summary: List
207         description: List all identities mapped to an account.
208         tags:
209           - Identity
210         parameters:
211         - name: identity_key
212           in: path
213           description: Identity string.
214           schema:
215             type: string
216           style: simple
217         - name: type
218           in: path
219           description: Identity type.
220           schema:
221             type: string
222           style: simple
223           required: false
224         responses:
225           200:
226             description: OK
227             content:
228               application/json:
229                 schema:
230                   type: array
231                   items:
232                     type: object
233                     description: Account for the identity.
234           401:
235             description: Invalid Auth Token
236           401:
237             description: Not acceptable
238         """
239         accounts = list_accounts_for_identity(identity_key, type)
240         return jsonify(accounts)
241 
242 
243 def blueprint():
244     bp = AuthenticatedBlueprint('identities', __name__, url_prefix='/identities')
245 
246     userpass_view = UserPass.as_view('userpass')
247     bp.add_url_rule('/<account>/userpass', view_func=userpass_view, methods=['put', ])
248     x509_view = X509.as_view('x509')
249     bp.add_url_rule('/<account>/x509', view_func=x509_view, methods=['put', ])
250     gss_view = GSS.as_view('gss')
251     bp.add_url_rule('/<account>/gss', view_func=gss_view, methods=['put', ])
252     accounts_view = Accounts.as_view('accounts')
253     bp.add_url_rule('/<identity_key>/<type>/accounts', view_func=accounts_view, methods=['get', ])
254 
255     bp.after_request(response_headers)
256     return bp
257 
258 
259 def make_doc():
260     """ Only used for sphinx documentation """
261     doc_app = Flask(__name__)
262     doc_app.register_blueprint(blueprint())
263     return doc_app
264
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/lib/rucio/web/rest/flaskapi/v1/identities.py b/lib/rucio/web/rest/flaskapi/v1/identities.py
--- a/lib/rucio/web/rest/flaskapi/v1/identities.py
+++ b/lib/rucio/web/rest/flaskapi/v1/identities.py
@@ -200,7 +200,7 @@
     """ Retrieve list of accounts mapped to an identity. """
 
     @check_accept_header_wrapper_flask(['application/json'])
-    def get(self, identity_key, type):
+    def get(self, identity_key, type_):
         """
         ---
         summary: List
@@ -236,7 +236,7 @@
           401:
             description: Not acceptable
         """
-        accounts = list_accounts_for_identity(identity_key, type)
+        accounts = list_accounts_for_identity(identity_key, type_)
         return jsonify(accounts)

{"golden_diff": "diff --git a/lib/rucio/web/rest/flaskapi/v1/identities.py b/lib/rucio/web/rest/flaskapi/v1/identities.py\n--- a/lib/rucio/web/rest/flaskapi/v1/identities.py\n+++ b/lib/rucio/web/rest/flaskapi/v1/identities.py\n@@ -200,7 +200,7 @@\n     \"\"\" Retrieve list of accounts mapped to an identity. \"\"\"\n \n     @check_accept_header_wrapper_flask(['application/json'])\n-    def get(self, identity_key, type):\n+    def get(self, identity_key, type_):\n         \"\"\"\n         ---\n         summary: List\n@@ -236,7 +236,7 @@\n           401:\n             description: Not acceptable\n         \"\"\"\n-        accounts = list_accounts_for_identity(identity_key, type)\n+        accounts = list_accounts_for_identity(identity_key, type_)\n         return jsonify(accounts)\n", "issue": "Keyword `type` gets overwritten\nMotivation\r\n----------\r\nThe keyword `type` in identities.py gets overwritten, this is a bad practice.\r\nhttps://github.com/rucio/rucio/blob/1b68bbf6d44013b193db3f668b1e4b608e488bce/lib/rucio/web/rest/flaskapi/v1/identities.py#L134\r\n\r\nModification\r\n------------\r\nUse another variable name.\nKeyword `type` gets overwritten\nMotivation\r\n----------\r\nThe keyword `type` in identities.py gets overwritten, this is a bad practice.\r\nhttps://github.com/rucio/rucio/blob/1b68bbf6d44013b193db3f668b1e4b608e488bce/lib/rucio/web/rest/flaskapi/v1/identities.py#L134\r\n\r\nModification\r\n------------\r\nUse another variable name.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#    http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom flask import Flask, request, jsonify\n\nfrom rucio.api.identity import add_identity, add_account_identity, list_accounts_for_identity\nfrom rucio.web.rest.flaskapi.v1.common import response_headers, check_accept_header_wrapper_flask, \\\n    ErrorHandlingMethodView\nfrom rucio.web.rest.flaskapi.authenticated_bp import AuthenticatedBlueprint\n\n\nclass UserPass(ErrorHandlingMethodView):\n    \"\"\" Manage a username/password identity for an account. \"\"\"\n\n    def put(self, account):\n        \"\"\"\n        ---\n        summary: Create UserPass identity\n        description: Creates a new UserPass identity and maps it to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: account\n          in: path\n          description: The account for the identity.\n          schema:\n            type: string\n          style: simple\n        - name: X-Rucio-Username\n          in: query\n          description: Username for the identity.\n          schema:\n            type: string\n          style: simple\n          required: true\n        - name: X-Rucio-Password\n          in: query\n          description: The password for the identity.\n          schema:\n            type: string\n          style: simple\n          required: true\n        - name: X-Rucio-Email\n          in: query\n          description: The email for the identity.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          201:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: string\n                  enum: ['Created']\n          401:\n            description: Invalid Auth Token\n          400:\n            description: Missing username or password.\n        \"\"\"\n        username = request.headers.get('X-Rucio-Username', default=None)\n        password = request.headers.get('X-Rucio-Password', default=None)\n        email = request.headers.get('X-Rucio-Email', default=None)\n\n        if not username or not password:\n            return 'Username and Password must be set.', 400\n\n        add_identity(username, 'userpass', email, password)\n\n        add_account_identity(\n            identity_key=username,\n            id_type='userpass',\n            account=account,\n            email=email,\n            password=password,\n            issuer=request.environ.get('issuer'),\n            vo=request.environ.get('vo'),\n        )\n\n        return 'Created', 201\n\n\nclass X509(ErrorHandlingMethodView):\n    \"\"\" Manage an x509 identity for an account. \"\"\"\n\n    def put(self, account):\n        \"\"\"\n        ---\n        summary: Create X509 identity\n        description: Creates a new X509 identity and maps it to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: account\n          in: path\n          description: The account for the identity.\n          schema:\n            type: string\n          style: simple\n        - name: X-Rucio-Email\n          in: query\n          description: The email for the identity.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          201:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: string\n                  enum: ['Created']\n          401:\n            description: Invalid Auth Token\n        \"\"\"\n        dn = request.environ.get('SSL_CLIENT_S_DN')\n        email = request.headers.get('X-Rucio-Email', default=None)\n\n        add_identity(dn, 'x509', email=email)\n        add_account_identity(\n            identity_key=dn,\n            id_type='x509',\n            account=account,\n            email=email,\n            issuer=request.environ.get('issuer'),\n            vo=request.environ.get('vo'),\n        )\n\n        return 'Created', 201\n\n\nclass GSS(ErrorHandlingMethodView):\n    \"\"\" Manage a GSS identity for an account. \"\"\"\n\n    def put(self, account):\n        \"\"\"\n        ---\n        summary: Create GSS identity\n        description: Creates a new GSS identity and maps it to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: account\n          in: path\n          description: The account for the identity.\n          schema:\n            type: string\n          style: simple\n        - name: X-Rucio-Email\n          in: query\n          description: The email for the identity.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          201:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: string\n                  enum: ['Created']\n          401:\n            description: Invalid Auth Token\n        \"\"\"\n        gsscred = request.environ.get('REMOTE_USER')\n        email = request.headers.get('X-Rucio-Email', default=None)\n\n        add_identity(gsscred, 'gss', email=email)\n        add_account_identity(\n            identity_key=gsscred,\n            id_type='gss',\n            account=account,\n            email=email,\n            issuer=request.environ.get('issuer'),\n            vo=request.environ.get('vo'),\n        )\n\n        return 'Created', 201\n\n\nclass Accounts(ErrorHandlingMethodView):\n    \"\"\" Retrieve list of accounts mapped to an identity. \"\"\"\n\n    @check_accept_header_wrapper_flask(['application/json'])\n    def get(self, identity_key, type):\n        \"\"\"\n        ---\n        summary: List\n        description: List all identities mapped to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: identity_key\n          in: path\n          description: Identity string.\n          schema:\n            type: string\n          style: simple\n        - name: type\n          in: path\n          description: Identity type.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          200:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: array\n                  items:\n                    type: object\n                    description: Account for the identity.\n          401:\n            description: Invalid Auth Token\n          401:\n            description: Not acceptable\n        \"\"\"\n        accounts = list_accounts_for_identity(identity_key, type)\n        return jsonify(accounts)\n\n\ndef blueprint():\n    bp = AuthenticatedBlueprint('identities', __name__, url_prefix='/identities')\n\n    userpass_view = UserPass.as_view('userpass')\n    bp.add_url_rule('/<account>/userpass', view_func=userpass_view, methods=['put', ])\n    x509_view = X509.as_view('x509')\n    bp.add_url_rule('/<account>/x509', view_func=x509_view, methods=['put', ])\n    gss_view = GSS.as_view('gss')\n    bp.add_url_rule('/<account>/gss', view_func=gss_view, methods=['put', ])\n    accounts_view = Accounts.as_view('accounts')\n    bp.add_url_rule('/<identity_key>/<type>/accounts', view_func=accounts_view, methods=['get', ])\n\n    bp.after_request(response_headers)\n    return bp\n\n\ndef make_doc():\n    \"\"\" Only used for sphinx documentation \"\"\"\n    doc_app = Flask(__name__)\n    doc_app.register_blueprint(blueprint())\n    return doc_app\n", "path": "lib/rucio/web/rest/flaskapi/v1/identities.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#    http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom flask import Flask, request, jsonify\n\nfrom rucio.api.identity import add_identity, add_account_identity, list_accounts_for_identity\nfrom rucio.web.rest.flaskapi.v1.common import response_headers, check_accept_header_wrapper_flask, \\\n    ErrorHandlingMethodView\nfrom rucio.web.rest.flaskapi.authenticated_bp import AuthenticatedBlueprint\n\n\nclass UserPass(ErrorHandlingMethodView):\n    \"\"\" Manage a username/password identity for an account. \"\"\"\n\n    def put(self, account):\n        \"\"\"\n        ---\n        summary: Create UserPass identity\n        description: Creates a new UserPass identity and maps it to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: account\n          in: path\n          description: The account for the identity.\n          schema:\n            type: string\n          style: simple\n        - name: X-Rucio-Username\n          in: query\n          description: Username for the identity.\n          schema:\n            type: string\n          style: simple\n          required: true\n        - name: X-Rucio-Password\n          in: query\n          description: The password for the identity.\n          schema:\n            type: string\n          style: simple\n          required: true\n        - name: X-Rucio-Email\n          in: query\n          description: The email for the identity.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          201:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: string\n                  enum: ['Created']\n          401:\n            description: Invalid Auth Token\n          400:\n            description: Missing username or password.\n        \"\"\"\n        username = request.headers.get('X-Rucio-Username', default=None)\n        password = request.headers.get('X-Rucio-Password', default=None)\n        email = request.headers.get('X-Rucio-Email', default=None)\n\n        if not username or not password:\n            return 'Username and Password must be set.', 400\n\n        add_identity(username, 'userpass', email, password)\n\n        add_account_identity(\n            identity_key=username,\n            id_type='userpass',\n            account=account,\n            email=email,\n            password=password,\n            issuer=request.environ.get('issuer'),\n            vo=request.environ.get('vo'),\n        )\n\n        return 'Created', 201\n\n\nclass X509(ErrorHandlingMethodView):\n    \"\"\" Manage an x509 identity for an account. \"\"\"\n\n    def put(self, account):\n        \"\"\"\n        ---\n        summary: Create X509 identity\n        description: Creates a new X509 identity and maps it to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: account\n          in: path\n          description: The account for the identity.\n          schema:\n            type: string\n          style: simple\n        - name: X-Rucio-Email\n          in: query\n          description: The email for the identity.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          201:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: string\n                  enum: ['Created']\n          401:\n            description: Invalid Auth Token\n        \"\"\"\n        dn = request.environ.get('SSL_CLIENT_S_DN')\n        email = request.headers.get('X-Rucio-Email', default=None)\n\n        add_identity(dn, 'x509', email=email)\n        add_account_identity(\n            identity_key=dn,\n            id_type='x509',\n            account=account,\n            email=email,\n            issuer=request.environ.get('issuer'),\n            vo=request.environ.get('vo'),\n        )\n\n        return 'Created', 201\n\n\nclass GSS(ErrorHandlingMethodView):\n    \"\"\" Manage a GSS identity for an account. \"\"\"\n\n    def put(self, account):\n        \"\"\"\n        ---\n        summary: Create GSS identity\n        description: Creates a new GSS identity and maps it to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: account\n          in: path\n          description: The account for the identity.\n          schema:\n            type: string\n          style: simple\n        - name: X-Rucio-Email\n          in: query\n          description: The email for the identity.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          201:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: string\n                  enum: ['Created']\n          401:\n            description: Invalid Auth Token\n        \"\"\"\n        gsscred = request.environ.get('REMOTE_USER')\n        email = request.headers.get('X-Rucio-Email', default=None)\n\n        add_identity(gsscred, 'gss', email=email)\n        add_account_identity(\n            identity_key=gsscred,\n            id_type='gss',\n            account=account,\n            email=email,\n            issuer=request.environ.get('issuer'),\n            vo=request.environ.get('vo'),\n        )\n\n        return 'Created', 201\n\n\nclass Accounts(ErrorHandlingMethodView):\n    \"\"\" Retrieve list of accounts mapped to an identity. \"\"\"\n\n    @check_accept_header_wrapper_flask(['application/json'])\n    def get(self, identity_key, type_):\n        \"\"\"\n        ---\n        summary: List\n        description: List all identities mapped to an account.\n        tags:\n          - Identity\n        parameters:\n        - name: identity_key\n          in: path\n          description: Identity string.\n          schema:\n            type: string\n          style: simple\n        - name: type\n          in: path\n          description: Identity type.\n          schema:\n            type: string\n          style: simple\n          required: false\n        responses:\n          200:\n            description: OK\n            content:\n              application/json:\n                schema:\n                  type: array\n                  items:\n                    type: object\n                    description: Account for the identity.\n          401:\n            description: Invalid Auth Token\n          401:\n            description: Not acceptable\n        \"\"\"\n        accounts = list_accounts_for_identity(identity_key, type_)\n        return jsonify(accounts)\n\n\ndef blueprint():\n    bp = AuthenticatedBlueprint('identities', __name__, url_prefix='/identities')\n\n    userpass_view = UserPass.as_view('userpass')\n    bp.add_url_rule('/<account>/userpass', view_func=userpass_view, methods=['put', ])\n    x509_view = X509.as_view('x509')\n    bp.add_url_rule('/<account>/x509', view_func=x509_view, methods=['put', ])\n    gss_view = GSS.as_view('gss')\n    bp.add_url_rule('/<account>/gss', view_func=gss_view, methods=['put', ])\n    accounts_view = Accounts.as_view('accounts')\n    bp.add_url_rule('/<identity_key>/<type>/accounts', view_func=accounts_view, methods=['get', ])\n\n    bp.after_request(response_headers)\n    return bp\n\n\ndef make_doc():\n    \"\"\" Only used for sphinx documentation \"\"\"\n    doc_app = Flask(__name__)\n    doc_app.register_blueprint(blueprint())\n    return doc_app\n", "path": "lib/rucio/web/rest/flaskapi/v1/identities.py"}]}