diff --git a/atom_tools/__init__.py b/atom_tools/__init__.py index 12f9184..47f4932 100644 --- a/atom_tools/__init__.py +++ b/atom_tools/__init__.py @@ -1,4 +1,4 @@ """ A cli, classes and functions for converting an atom slice to a different format """ -__version__ = '0.4.4' +__version__ = '0.4.5' diff --git a/atom_tools/lib/converter.py b/atom_tools/lib/converter.py index cac6fa0..3f6d19a 100644 --- a/atom_tools/lib/converter.py +++ b/atom_tools/lib/converter.py @@ -176,7 +176,7 @@ def _calls_to_params(self, ep: str, orig_ep: str, call: Dict | None) -> Dict[str if call_name in ops: params = self._create_param_object(ep, orig_ep, call) result: Dict[str, Dict] = {call_name: {'responses': {}}} - if params: + if params and self.usages.origin_type not in ('js', 'ts', 'javascript', 'typescript'): result[call_name] |= {'parameters': params} return result return determine_operations(call, params) diff --git a/pyproject.toml b/pyproject.toml index a67cda2..80af619 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "atom-tools" -version = "0.4.4" +version = "0.4.5" description = "Collection of tools for use with AppThreat/atom." authors = [ { name = "Caroline Russell", email = "caroline@appthreat.dev" }, diff --git a/test/test_converter.py b/test/test_converter.py index 6d17db7..81ed105 100644 --- a/test/test_converter.py +++ b/test/test_converter.py @@ -721,145 +721,86 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, 'target': {'src/main/java/org/joychou/controller/XStreamRce.java': [23]}}}} result = js_usages_1.convert_usages() result = sort_result(result) - assert result == {'/': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + assert result == {'/': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18, 54], 'server.ts': [185]}}}, - '/.well-known/security.txt': {'get': {'parameters': [{'in': 'header', - 'name': 'ANY'}], - 'responses': {}}, + '/.well-known/security.txt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [196, 197]}}}, '/123.456.789': {'x-atom-usages': {'call': {'server.ts': [395]}}}, - '/Blockedillegalactivityby': {'get': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Blockedillegalactivityby': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18, 54]}}}, - '/Invalidemail/passwordcannotbeempty': {'post': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Invalidemail/passwordcannotbeempty': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [372]}}}, - '/Noanswerfound!': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Noanswerfound!': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18]}}}, - '/Noquestionfound!': {'get': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Noquestionfound!': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18]}}}, '/Preferred-Languages': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [197]}}}, '/api-docs': {'x-atom-usages': {'call': {'server.ts': [263]}}}, - '/api/Addresss': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Addresss': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [412, 413]}}}, - '/api/Addresss/{id}': {'delete': {'parameters': [], 'responses': {}}, - 'get': {'parameters': [], 'responses': {}}, + '/api/Addresss/{id}': {'delete': {'responses': {}}, + 'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [414, 415, 416]}}}, - '/api/BasketItems': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/BasketItems': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [327, 391]}}}, '/api/BasketItems/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [328, 390]}}}, - '/api/Cards': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Cards': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [402, 403]}}}, - '/api/Cards/{id}': {'delete': {'parameters': [], 'responses': {}}, - 'get': {'parameters': [], 'responses': {}}, + '/api/Cards/{id}': {'delete': {'responses': {}}, + 'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [404, 405, 406]}}}, - '/api/Challenges': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Challenges': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [342]}}}, '/api/Challenges/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [343]}}}, - '/api/Complaints': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Complaints': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [345, 346]}}}, '/api/Complaints/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [347]}}}, - '/api/Deliverys': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Deliverys': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [417]}}}, - '/api/Deliverys/{id}': {'get': {'parameters': [], 'responses': {}}, + '/api/Deliverys/{id}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [418]}}}, - '/api/Feedbacks': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Feedbacks': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [366, 368, 370]}}}, '/api/Feedbacks/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [330, 397]}}}, - '/api/PrivacyRequests': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/PrivacyRequests': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [399, 408, 409]}}}, @@ -868,75 +809,46 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, 'required': True}], 'x-atom-usages': {'call': {'server.ts': [400, 410]}}}, - '/api/Products': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Products': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [338]}}}, - '/api/Products/{id}': {'delete': {'parameters': [], 'responses': {}}, + '/api/Products/{id}': {'delete': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [340]}}}, - '/api/Quantitys': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Quantitys': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [394]}}}, - '/api/Quantitys/{id}': {'delete': {'parameters': [], 'responses': {}}, + '/api/Quantitys/{id}': {'delete': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [393, 395]}}}, - '/api/Recycles': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Recycles': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [349, 350]}}}, - '/api/Recycles/{id}': {'delete': {'parameters': [], 'responses': {}}, - 'get': {'parameters': [], 'responses': {}}, + '/api/Recycles/{id}': {'delete': {'responses': {}}, + 'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [352, 353, 354]}}}, - '/api/SecurityAnswers': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/SecurityAnswers': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [359]}}}, '/api/SecurityAnswers/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [360]}}}, - '/api/SecurityQuestions': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/SecurityQuestions': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [356]}}}, '/api/SecurityQuestions/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [357]}}}, - '/api/Users': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Users': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [332, 372, 384, @@ -960,50 +872,30 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, '/assets/public/images/products': {'x-atom-usages': {'call': {'server.ts': [214]}}}, '/assets/public/images/uploads': {'x-atom-usages': {'call': {'server.ts': [215]}}}, '/b2b/v2': {'x-atom-usages': {'call': {'server.ts': [388]}}}, - '/b2b/v2/orders': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/b2b/v2/orders': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [602]}}}, '/combined': {'x-atom-usages': {'call': {'server.ts': [308]}}}, - '/ctf.key': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/ctf.key': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54]}}}, - '/dataErasureForm': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/dataErasureForm': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18]}}}, - '/dataErasureResult': {'post': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/dataErasureResult': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54]}}}, '/dataerasure': {'x-atom-usages': {'call': {'server.ts': [610]}}}, '/details': {'x-atom-usages': {'call': {'server.ts': [254, 258]}}}, - '/encryptionkeys': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/encryptionkeys': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54], 'server.ts': [254]}}}, '/encryptionkeys/{file}': {'parameters': [{'in': 'path', 'name': 'file', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [255]}}}, - '/file': {'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/file': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [281, 282, 283]}}}, - '/file-upload': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/file-upload': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [281]}}}, '/frontend/dist/frontend': {'x-atom-usages': {'call': {'server.ts': [265]}}}, - '/ftp': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/ftp': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54], 'server.ts': [207, 249]}}}, '/ftp/quarantine/{file}': {'parameters': [{'in': 'path', @@ -1011,61 +903,38 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, 'required': True}], 'x-atom-usages': {'call': {'server.ts': [251]}}}, '/hbs': {'x-atom-usages': {'call': {'server.ts': [149]}}}, - '/image': {'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/image': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [284]}}}, '/kekse': {'x-atom-usages': {'call': {'server.ts': [266]}}}, '/logs': {'x-atom-usages': {'call': {'server.ts': [258]}}}, - '/metrics': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/metrics': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [678]}}}, - '/profile': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/profile': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [620, 621]}}}, - '/profile/image/file': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/profile/image/file': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [282]}}}, - '/profile/image/url': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/profile/image/url': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [283]}}}, - '/promotion': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/promotion': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [616]}}}, - '/redirect': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/redirect': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [613]}}}, '/rest/2fa/disable': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [435]}}}, '/rest/2fa/setup': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [429]}}}, - '/rest/2fa/status': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}, - {'in': 'header', - 'name': 'routes/2fa.ts::program:status'}], - 'responses': {}}, + '/rest/2fa/status': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [427]}}}, '/rest/2fa/verify': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [422]}}}, - '/rest/admin/application-configuration': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/admin/application-configuration': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [561]}}}, - '/rest/admin/application-version': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/admin/application-version': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [560, 569]}}}, '/rest/basket': {'x-atom-usages': {'call': {'server.ts': [325]}}}, - '/rest/basket/{id}': {'get': {'parameters': [], 'responses': {}}, + '/rest/basket/{id}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], @@ -1073,7 +942,7 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, '/rest/basket/{id}/checkout': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'post': {'parameters': [], 'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [558]}}}, '/rest/basket/{id}/coupon/{coupon}': {'parameters': [{'in': 'path', 'name': 'coupon', @@ -1081,212 +950,128 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, {'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [559]}}}, '/rest/basket/{id}/order': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [364]}}}, - '/rest/captcha': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/captcha': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [570]}}}, - '/rest/chatbot/respond': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/chatbot/respond': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [587]}}}, - '/rest/chatbot/status': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/chatbot/status': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [586]}}}, - '/rest/continue-code': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/continue-code': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [563]}}}, - '/rest/continue-code-findIt': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/continue-code-findIt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [564]}}}, '/rest/continue-code-findIt/apply/{continueCode}': {'parameters': [{'in': 'path', 'name': 'continueCode', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [566]}}}, - '/rest/continue-code-fixIt': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/continue-code-fixIt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [565]}}}, '/rest/continue-code-fixIt/apply/{continueCode}': {'parameters': [{'in': 'path', 'name': 'continueCode', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [567]}}}, '/rest/continue-code/apply/{continueCode}': {'parameters': [{'in': 'path', 'name': 'continueCode', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [568]}}}, - '/rest/country-mapping': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/country-mapping': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [573]}}}, - '/rest/deluxe-membership': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/deluxe-membership': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [583, 584]}}}, - '/rest/image-captcha': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/image-captcha': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [571]}}}, - '/rest/languages': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/languages': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [577]}}}, - '/rest/memories': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/memories': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [284, 585]}}}, - '/rest/order-history': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/order-history': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [578]}}}, - '/rest/order-history/orders': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/order-history/orders': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [579]}}}, '/rest/order-history/{id}/delivery-status': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [580]}}}, - '/rest/products/reviews': {'patch': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/rest/products/reviews': {'patch': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [591, 592]}}}, - '/rest/products/search': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/products/search': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [556]}}}, - '/rest/products/{id}/reviews': {'get': {'parameters': [], 'responses': {}}, + '/rest/products/{id}/reviews': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [589, 590]}}}, - '/rest/repeat-notification': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/repeat-notification': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [562]}}}, - '/rest/saveLoginIp': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/saveLoginIp': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [574]}}}, - '/rest/track-order/{id}': {'get': {'parameters': [], 'responses': {}}, + '/rest/track-order/{id}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [572]}}}, - '/rest/user/authentication-details': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/authentication-details': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [362, 555]}}}, - '/rest/user/change-password': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/change-password': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [551]}}}, - '/rest/user/data-export': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/data-export': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [575, 576]}}}, - '/rest/user/login': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/login': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [550]}}}, '/rest/user/reset-password': {'head': {'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [313, 552]}}}, - '/rest/user/security-question': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/security-question': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [553]}}}, - '/rest/user/whoami': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/whoami': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [554]}}}, - '/rest/wallet/balance': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'put': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/wallet/balance': {'get': {'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [581, 582]}}}, - '/rest/web3/nftMintListen': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/nftMintListen': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [597]}}}, - '/rest/web3/nftUnlocked': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/nftUnlocked': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [596]}}}, - '/rest/web3/submitKey': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/submitKey': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [595]}}}, - '/rest/web3/walletExploitAddress': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/walletExploitAddress': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [599]}}}, - '/rest/web3/walletNFTVerify': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/walletNFTVerify': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [598]}}}, - '/security.txt': {'get': {'parameters': [{'in': 'header', 'name': 'ANY'}], - 'responses': {}}, + '/security.txt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [196, 197]}}}, - '/snippets': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/snippets': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [624]}}}, - '/snippets/fixes': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/snippets/fixes': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [628]}}}, - '/snippets/fixes/{key}': {'get': {'parameters': [], 'responses': {}}, + '/snippets/fixes/{key}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'key', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [627]}}}, - '/snippets/verdict': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/snippets/verdict': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [626]}}}, - '/snippets/{challenge}': {'get': {'parameters': [], 'responses': {}}, + '/snippets/{challenge}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'challenge', 'required': True}], @@ -1297,26 +1082,17 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, 'name': 'file', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [260]}}}, - '/the/devs/are/so/funny/they/hid/an/easter/egg/within/the/easter/egg': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/the/devs/are/so/funny/they/hid/an/easter/egg/within/the/easter/egg': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [605]}}}, - '/this/page/is/hidden/behind/an/incredibly/high/paywall/that/could/only/be/unlocked/by/sending/1btc/to/us': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/this/page/is/hidden/behind/an/incredibly/high/paywall/that/could/only/be/unlocked/by/sending/1btc/to/us': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [606]}}}, - '/token': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/token': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54]}}}, '/trustproxy': {'x-atom-usages': {'call': {'server.ts': [312]}}}, - '/video': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/video': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [617]}}}, '/viewengine': {'x-atom-usages': {'call': {'server.ts': [149]}}}, - '/we/may/also/instruct/you/to/refuse/all/reasonably/necessary/responsibility': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/we/may/also/instruct/you/to/refuse/all/reasonably/necessary/responsibility': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [607]}}}, '/{regex_param_1}/{file}': {'parameters': [{'in': 'path', 'name': 'file', @@ -1329,102 +1105,51 @@ def test_convert_usages(java_usages_1, java_usages_2, js_usages_1, js_usages_2, 'x-atom-usages': {'call': {'server.ts': [250]}}}} result = js_usages_2.convert_usages() result = sort_result(result) - assert result == {'/': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + assert result == {'/': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [30], 'app/routes/tutorial.js': [8]}}}, - '/allocations/{userId}': {'get': {'parameters': [], 'responses': {}}, + '/allocations/{userId}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'userId', 'required': True}], 'x-atom-usages': {'call': {'app/routes/index.js': [63]}}}, '/app/assets/favicon.ico': {'x-atom-usages': {'call': {'server.js': [68]}}}, - '/benefits': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/benefits': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [55, 56]}}}, - '/contributions': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/contributions': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [51, 52]}}}, - '/dashboard': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/dashboard': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [44]}}}, '/html': {'x-atom-usages': {'call': {'server.js': [117]}}}, - '/learn': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/learn': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [70]}}}, - '/login': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/login': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [33, 34]}}}, - '/logout': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/logout': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [41]}}}, '/maxAge': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.js': [78]}}}, - '/memos': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/memos': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [66, 67]}}}, - '/profile': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/profile': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [47, 48]}}}, - '/research': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'app/routes/session.js::program:SessionHandler:(isLoggedInMiddleware)'}], - 'responses': {}}, + '/research': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [76]}}}, '/sessionId': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.js': [78]}}}, - '/signup': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/signup': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/index.js': [37, 38]}}}, '/tutorial': {'x-atom-usages': {'call': {'app/routes/index.js': [79]}}}, - '/tutorial/a1': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/tutorial/a1': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/tutorial.js': [8]}}}, - '/usestrict': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/usestrict': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'app/routes/tutorial.js': [8, 31]}}}, '/viewengine': {'x-atom-usages': {'call': {'server.js': [117]}}}, '/views': {'x-atom-usages': {'call': {'server.js': [118]}}}} @@ -10649,145 +10374,86 @@ def test_js(js_usages_1): endpoints = js_usages_1.populate_endpoints(methods) endpoints = sort_result(endpoints) - assert endpoints == {'/': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + assert endpoints == {'/': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18, 54], 'server.ts': [185]}}}, - '/.well-known/security.txt': {'get': {'parameters': [{'in': 'header', - 'name': 'ANY'}], - 'responses': {}}, + '/.well-known/security.txt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [196, 197]}}}, '/123.456.789': {'x-atom-usages': {'call': {'server.ts': [395]}}}, - '/Blockedillegalactivityby': {'get': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Blockedillegalactivityby': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18, 54]}}}, - '/Invalidemail/passwordcannotbeempty': {'post': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Invalidemail/passwordcannotbeempty': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [372]}}}, - '/Noanswerfound!': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Noanswerfound!': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18]}}}, - '/Noquestionfound!': {'get': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/Noquestionfound!': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18]}}}, '/Preferred-Languages': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [197]}}}, '/api-docs': {'x-atom-usages': {'call': {'server.ts': [263]}}}, - '/api/Addresss': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Addresss': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [412, 413]}}}, - '/api/Addresss/{id}': {'delete': {'parameters': [], 'responses': {}}, - 'get': {'parameters': [], 'responses': {}}, + '/api/Addresss/{id}': {'delete': {'responses': {}}, + 'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [414, 415, 416]}}}, - '/api/BasketItems': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/BasketItems': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [327, 391]}}}, '/api/BasketItems/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [328, 390]}}}, - '/api/Cards': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Cards': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [402, 403]}}}, - '/api/Cards/{id}': {'delete': {'parameters': [], 'responses': {}}, - 'get': {'parameters': [], 'responses': {}}, + '/api/Cards/{id}': {'delete': {'responses': {}}, + 'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [404, 405, 406]}}}, - '/api/Challenges': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Challenges': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [342]}}}, '/api/Challenges/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [343]}}}, - '/api/Complaints': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Complaints': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [345, 346]}}}, '/api/Complaints/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [347]}}}, - '/api/Deliverys': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Deliverys': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [417]}}}, - '/api/Deliverys/{id}': {'get': {'parameters': [], 'responses': {}}, + '/api/Deliverys/{id}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [418]}}}, - '/api/Feedbacks': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Feedbacks': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [366, 368, 370]}}}, '/api/Feedbacks/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [330, 397]}}}, - '/api/PrivacyRequests': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/PrivacyRequests': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [399, 408, 409]}}}, @@ -10796,75 +10462,46 @@ def test_js(js_usages_1): 'required': True}], 'x-atom-usages': {'call': {'server.ts': [400, 410]}}}, - '/api/Products': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Products': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [338]}}}, - '/api/Products/{id}': {'delete': {'parameters': [], 'responses': {}}, + '/api/Products/{id}': {'delete': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [340]}}}, - '/api/Quantitys': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Quantitys': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [394]}}}, - '/api/Quantitys/{id}': {'delete': {'parameters': [], 'responses': {}}, + '/api/Quantitys/{id}': {'delete': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [393, 395]}}}, - '/api/Recycles': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/Recycles': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [349, 350]}}}, - '/api/Recycles/{id}': {'delete': {'parameters': [], 'responses': {}}, - 'get': {'parameters': [], 'responses': {}}, + '/api/Recycles/{id}': {'delete': {'responses': {}}, + 'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [352, 353, 354]}}}, - '/api/SecurityAnswers': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/SecurityAnswers': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [359]}}}, '/api/SecurityAnswers/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [360]}}}, - '/api/SecurityQuestions': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/api/SecurityQuestions': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [356]}}}, '/api/SecurityQuestions/{id}': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [357]}}}, - '/api/Users': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/api/Users': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [332, 372, 384, @@ -10888,50 +10525,30 @@ def test_js(js_usages_1): '/assets/public/images/products': {'x-atom-usages': {'call': {'server.ts': [214]}}}, '/assets/public/images/uploads': {'x-atom-usages': {'call': {'server.ts': [215]}}}, '/b2b/v2': {'x-atom-usages': {'call': {'server.ts': [388]}}}, - '/b2b/v2/orders': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/b2b/v2/orders': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [602]}}}, '/combined': {'x-atom-usages': {'call': {'server.ts': [308]}}}, - '/ctf.key': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/ctf.key': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54]}}}, - '/dataErasureForm': {'get': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/dataErasureForm': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [18]}}}, - '/dataErasureResult': {'post': {'parameters': [{'in': 'header', - 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/dataErasureResult': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54]}}}, '/dataerasure': {'x-atom-usages': {'call': {'server.ts': [610]}}}, '/details': {'x-atom-usages': {'call': {'server.ts': [254, 258]}}}, - '/encryptionkeys': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/encryptionkeys': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54], 'server.ts': [254]}}}, '/encryptionkeys/{file}': {'parameters': [{'in': 'path', 'name': 'file', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [255]}}}, - '/file': {'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/file': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [281, 282, 283]}}}, - '/file-upload': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/file-upload': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [281]}}}, '/frontend/dist/frontend': {'x-atom-usages': {'call': {'server.ts': [265]}}}, - '/ftp': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/ftp': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54], 'server.ts': [207, 249]}}}, '/ftp/quarantine/{file}': {'parameters': [{'in': 'path', @@ -10939,61 +10556,38 @@ def test_js(js_usages_1): 'required': True}], 'x-atom-usages': {'call': {'server.ts': [251]}}}, '/hbs': {'x-atom-usages': {'call': {'server.ts': [149]}}}, - '/image': {'post': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/image': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [284]}}}, '/kekse': {'x-atom-usages': {'call': {'server.ts': [266]}}}, '/logs': {'x-atom-usages': {'call': {'server.ts': [258]}}}, - '/metrics': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/metrics': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [678]}}}, - '/profile': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/profile': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [620, 621]}}}, - '/profile/image/file': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/profile/image/file': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [282]}}}, - '/profile/image/url': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/profile/image/url': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [283]}}}, - '/promotion': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/promotion': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [616]}}}, - '/redirect': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/redirect': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [613]}}}, '/rest/2fa/disable': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [435]}}}, '/rest/2fa/setup': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [429]}}}, - '/rest/2fa/status': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}, - {'in': 'header', - 'name': 'routes/2fa.ts::program:status'}], - 'responses': {}}, + '/rest/2fa/status': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [427]}}}, '/rest/2fa/verify': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [422]}}}, - '/rest/admin/application-configuration': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/admin/application-configuration': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [561]}}}, - '/rest/admin/application-version': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/admin/application-version': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [560, 569]}}}, '/rest/basket': {'x-atom-usages': {'call': {'server.ts': [325]}}}, - '/rest/basket/{id}': {'get': {'parameters': [], 'responses': {}}, + '/rest/basket/{id}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], @@ -11001,7 +10595,7 @@ def test_js(js_usages_1): '/rest/basket/{id}/checkout': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'post': {'parameters': [], 'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [558]}}}, '/rest/basket/{id}/coupon/{coupon}': {'parameters': [{'in': 'path', 'name': 'coupon', @@ -11009,212 +10603,128 @@ def test_js(js_usages_1): {'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [559]}}}, '/rest/basket/{id}/order': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [364]}}}, - '/rest/captcha': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/captcha': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [570]}}}, - '/rest/chatbot/respond': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/chatbot/respond': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [587]}}}, - '/rest/chatbot/status': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/chatbot/status': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [586]}}}, - '/rest/continue-code': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/continue-code': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [563]}}}, - '/rest/continue-code-findIt': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/continue-code-findIt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [564]}}}, '/rest/continue-code-findIt/apply/{continueCode}': {'parameters': [{'in': 'path', 'name': 'continueCode', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [566]}}}, - '/rest/continue-code-fixIt': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/continue-code-fixIt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [565]}}}, '/rest/continue-code-fixIt/apply/{continueCode}': {'parameters': [{'in': 'path', 'name': 'continueCode', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [567]}}}, '/rest/continue-code/apply/{continueCode}': {'parameters': [{'in': 'path', 'name': 'continueCode', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [568]}}}, - '/rest/country-mapping': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/country-mapping': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [573]}}}, - '/rest/deluxe-membership': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/deluxe-membership': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [583, 584]}}}, - '/rest/image-captcha': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/image-captcha': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [571]}}}, - '/rest/languages': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/languages': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [577]}}}, - '/rest/memories': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/memories': {'get': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [284, 585]}}}, - '/rest/order-history': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/order-history': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [578]}}}, - '/rest/order-history/orders': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/order-history/orders': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [579]}}}, '/rest/order-history/{id}/delivery-status': {'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], - 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [580]}}}, - '/rest/products/reviews': {'patch': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}, - {'in': 'header', - 'name': 'express-jwt:expressJwt:'}], - 'responses': {}}, + '/rest/products/reviews': {'patch': {'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [591, 592]}}}, - '/rest/products/search': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/products/search': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [556]}}}, - '/rest/products/{id}/reviews': {'get': {'parameters': [], 'responses': {}}, + '/rest/products/{id}/reviews': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], - 'put': {'parameters': [], 'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [589, 590]}}}, - '/rest/repeat-notification': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/repeat-notification': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [562]}}}, - '/rest/saveLoginIp': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/saveLoginIp': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [574]}}}, - '/rest/track-order/{id}': {'get': {'parameters': [], 'responses': {}}, + '/rest/track-order/{id}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'id', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [572]}}}, - '/rest/user/authentication-details': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/authentication-details': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [362, 555]}}}, - '/rest/user/change-password': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/change-password': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [551]}}}, - '/rest/user/data-export': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/data-export': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [575, 576]}}}, - '/rest/user/login': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/login': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [550]}}}, '/rest/user/reset-password': {'head': {'responses': {}}, - 'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + 'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [313, 552]}}}, - '/rest/user/security-question': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/security-question': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [553]}}}, - '/rest/user/whoami': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/user/whoami': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [554]}}}, - '/rest/wallet/balance': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, - 'put': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/wallet/balance': {'get': {'responses': {}}, + 'put': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [581, 582]}}}, - '/rest/web3/nftMintListen': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/nftMintListen': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [597]}}}, - '/rest/web3/nftUnlocked': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/nftUnlocked': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [596]}}}, - '/rest/web3/submitKey': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/submitKey': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [595]}}}, - '/rest/web3/walletExploitAddress': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/walletExploitAddress': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [599]}}}, - '/rest/web3/walletNFTVerify': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/rest/web3/walletNFTVerify': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [598]}}}, - '/security.txt': {'get': {'parameters': [{'in': 'header', 'name': 'ANY'}], - 'responses': {}}, + '/security.txt': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [196, 197]}}}, - '/snippets': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/snippets': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [624]}}}, - '/snippets/fixes': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/snippets/fixes': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [628]}}}, - '/snippets/fixes/{key}': {'get': {'parameters': [], 'responses': {}}, + '/snippets/fixes/{key}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'key', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [627]}}}, - '/snippets/verdict': {'post': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/snippets/verdict': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [626]}}}, - '/snippets/{challenge}': {'get': {'parameters': [], 'responses': {}}, + '/snippets/{challenge}': {'get': {'responses': {}}, 'parameters': [{'in': 'path', 'name': 'challenge', 'required': True}], @@ -11225,26 +10735,17 @@ def test_js(js_usages_1): 'name': 'file', 'required': True}], 'x-atom-usages': {'call': {'server.ts': [260]}}}, - '/the/devs/are/so/funny/they/hid/an/easter/egg/within/the/easter/egg': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/the/devs/are/so/funny/they/hid/an/easter/egg/within/the/easter/egg': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [605]}}}, - '/this/page/is/hidden/behind/an/incredibly/high/paywall/that/could/only/be/unlocked/by/sending/1btc/to/us': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/this/page/is/hidden/behind/an/incredibly/high/paywall/that/could/only/be/unlocked/by/sending/1btc/to/us': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [606]}}}, - '/token': {'post': {'parameters': [{'in': 'header', 'name': 'LAMBDA'}, - {'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/token': {'post': {'responses': {}}, 'x-atom-usages': {'call': {'routes/dataErasure.ts': [54]}}}, '/trustproxy': {'x-atom-usages': {'call': {'server.ts': [312]}}}, - '/video': {'get': {'parameters': [{'in': 'header', 'name': '__ecma.String'}], - 'responses': {}}, + '/video': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [617]}}}, '/viewengine': {'x-atom-usages': {'call': {'server.ts': [149]}}}, - '/we/may/also/instruct/you/to/refuse/all/reasonably/necessary/responsibility': {'get': {'parameters': [{'in': 'header', - 'name': '__ecma.String'}], - 'responses': {}}, + '/we/may/also/instruct/you/to/refuse/all/reasonably/necessary/responsibility': {'get': {'responses': {}}, 'x-atom-usages': {'call': {'server.ts': [607]}}}, '/{regex_param_1}/{file}': {'parameters': [{'in': 'path', 'name': 'file',