1 line
24 KiB
JSON
1 line
24 KiB
JSON
{"_type":"export","__export_format":4,"__export_date":"2023-06-12T09:30:08.182Z","__export_source":"insomnia.desktop.app:v2023.2.2","resources":[{"_id":"req_e1f51a43553b49f1ab0dd8144f8838ab","parentId":"fld_b93603394ce3455cb1a0c169de187d03","modified":1686540762016,"created":1686464136593,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}","name":"New Request","description":"","method":"GET","body":{},"parameters":[{"id":"pair_7898d6e719ac4a1b91f0f052181a53a7","name":"username","value":"andreas3","description":""},{"id":"pair_b42362652f6c45e4b2023477a4a0fa28","name":"password","value":"changeme","description":""}],"headers":[{"id":"pair_fda94cda80a84d18af14dd872a7b16b8","name":"","value":"","description":""}],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"andreas2","password":"changeme"},"metaSortKey":-1686464136593,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_b93603394ce3455cb1a0c169de187d03","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686464158382,"created":1686464133576,"name":"auth","description":"","environment":{"route":"auth"},"environmentPropertyOrder":{"&":["route"]},"metaSortKey":-1686464133576,"_type":"request_group"},{"_id":"wrk_a189b5072b8c4203924446cbf96ec47d","parentId":null,"modified":1686453338349,"created":1686453338349,"name":"Portfolio","description":"","scope":"design","_type":"workspace"},{"_id":"req_2f70b86802a549cbbf24dff4fb318c73","parentId":"fld_a3c04530d80a4ec091b42f431e450237","modified":1686536923156,"created":1686535644896,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}","name":"New Request","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"username\": \"andreas3\",\n\t\"password\": \"changeme\"\n}"},"parameters":[],"headers":[{"id":"pair_fda94cda80a84d18af14dd872a7b16b8","name":"","value":"","description":""},{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1686464136593,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_a3c04530d80a4ec091b42f431e450237","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686535655573,"created":1686535644894,"name":"User","description":"","environment":{"route":"user"},"environmentPropertyOrder":{"&":["route"]},"metaSortKey":-1686383815714.5,"_type":"request_group"},{"_id":"req_4135b76ecd6e4b38ae875015a1f38c1a","parentId":"fld_b079892e41ea4b9dbf7d00e85df36b4e","modified":1686304187685,"created":1686303504644,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}","name":"Get All Posts","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686303497803,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_b079892e41ea4b9dbf7d00e85df36b4e","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686304180712,"created":1686303497852,"name":"Post","description":"","environment":{"route":"post"},"environmentPropertyOrder":{"&":["route"]},"metaSortKey":-1686303497853,"_type":"request_group"},{"_id":"req_b70167944901490b94817df299f21de6","parentId":"fld_b079892e41ea4b9dbf7d00e85df36b4e","modified":1686453700500,"created":1686453675016,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}/1","name":"Get Specific Post","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686303497753,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_6622010a2bca41beb03b8ba126a6c4b6","parentId":"fld_c82ab5d372fb414e9cf326a69225c7e4","modified":1686458449960,"created":1686455585158,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}","name":"Get All Posts","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686303497803,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_c82ab5d372fb414e9cf326a69225c7e4","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686455601799,"created":1686455585147,"name":"Brown","description":"","environment":{"route":"brown"},"environmentPropertyOrder":{"&":["route"]},"metaSortKey":-1686303497803,"_type":"request_group"},{"_id":"req_eddd37fc4002491892d8acca3dc5d85e","parentId":"fld_c82ab5d372fb414e9cf326a69225c7e4","modified":1686459281655,"created":1686455607594,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}","name":"New Request","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"title\": \"peepee\",\n\t\"content\": \"poopoo\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1686303497778,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1703723ed00c40798a9f8fcd154cffd4","parentId":"fld_c82ab5d372fb414e9cf326a69225c7e4","modified":1686455585160,"created":1686455585160,"url":"{{ _.scheme }}://{{ _.host }}:{{ _.port }}/{{ _.base_path }}/{{ _.route }}/1","name":"Get Specific Post","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686303497753,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_70d3512c1c8840df95de5b7dac78ac9f","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686304013422,"created":1686303473288,"name":"Base Environment","data":{"scheme":"http","host":"localhost","port":3000,"base_path":"api"},"dataPropertyOrder":{"&":["scheme","host","port","base_path"]},"color":null,"isPrivate":false,"metaSortKey":1686303473288,"_type":"environment"},{"_id":"jar_7842a9b1b5aa4d75900c945b6008f4f7","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686303473290,"created":1686303473290,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_a025b787e6754e45a91e8ab3ec1feb42","parentId":"wrk_a189b5072b8c4203924446cbf96ec47d","modified":1686453625860,"created":1686453378493,"fileName":"Portfolio","contents":"openapi: 3.0.0\ninfo:\n description: \"Ask your mom. \\r\\n\\r\\n\n Portfolio [https://aschaafsma.nl](aschaafsma.nl) or on [irc.freenode.net,\n #swagger](https://aschaafsma.nl/irc/). For this sample, you can use the api key\n `special-key` to test the authorization filters.\"\n version: 1.0.2\n title: Portfolio\n termsOfService: http://aschaafsa.nl\n contact:\n email: apiteam@aschaafsma.nl\n license:\n name: GPL 3.0\n url: https://lickmy.nuts\ntags:\n - name: post\n description: A post on the blog\n externalDocs:\n description: Find out more\n url: http://askyour.mom\n - name: tag\n description: Access to Petstore orders\n - name: user\n description: Operations about user\n externalDocs:\n description: Find out more about our store\n url: http://your.mom\npaths:\n /pet:\n post:\n tags:\n - pet\n summary: Add a new pet to the store\n description: \"\"\n operationId: addPet\n requestBody:\n $ref: \"#/components/requestBodies/Pet\"\n responses:\n \"405\":\n description: \"Invalid input\"\n put:\n tags:\n - pet\n summary: Update an existing pet\n description: \"\"\n operationId: updatePet\n requestBody:\n $ref: \"#/components/requestBodies/Pet\"\n responses:\n \"400\":\n description: Invalid ID supplied\n \"404\":\n description: Pet not found\n \"405\":\n description: Validation exception\n /pet/findByStatus:\n get:\n tags:\n - pet\n summary: Finds Pets by status\n description: Multiple status values can be provided with comma separated strings\n operationId: findPetsByStatus\n parameters:\n - name: status\n in: query\n description: Status values that need to be considered for filter\n required: true\n explode: true\n schema:\n type: array\n items:\n type: string\n enum:\n - available\n - pending\n - sold\n default: available\n responses:\n \"200\":\n description: successful operation\n content:\n application/xml:\n schema:\n type: array\n items:\n $ref: \"#/components/schemas/Pet\"\n application/json:\n schema:\n type: array\n items:\n $ref: \"#/components/schemas/Pet\"\n \"400\":\n description: Invalid status value\n /pet/findByTags:\n get:\n tags:\n - pet\n summary: Finds Pets by tags\n description: Multiple tags can be provided with comma separated strings. Use tag1,\n tag2, tag3 for testing.\n operationId: findPetsByTags\n parameters:\n - name: tags\n in: query\n description: Tags to filter by\n required: true\n explode: true\n schema:\n type: array\n items:\n type: string\n responses:\n \"200\":\n description: successful operation\n content:\n application/xml:\n schema:\n type: array\n items:\n $ref: \"#/components/schemas/Pet\"\n application/json:\n schema:\n type: array\n items:\n $ref: \"#/components/schemas/Pet\"\n \"400\":\n description: Invalid tag value\n deprecated: true\n \"/pet/{petId}\":\n get:\n tags:\n - pet\n summary: Find pet by ID\n description: Returns a single pet\n operationId: getPetById\n parameters:\n - name: petId\n in: path\n description: ID of pet to return\n required: true\n schema:\n type: integer\n format: int64\n responses:\n \"200\":\n description: successful operation\n content:\n application/xml:\n schema:\n $ref: \"#/components/schemas/Pet\"\n application/json:\n schema:\n $ref: \"#/components/schemas/Pet\"\n \"400\":\n description: Invalid ID supplied\n \"404\":\n description: Pet not found\n post:\n tags:\n - pet\n summary: Updates a pet in the store with form data\n description: \"\"\n operationId: updatePetWithForm\n parameters:\n - name: petId\n in: path\n description: ID of pet that needs to be updated\n required: true\n schema:\n type: integer\n format: int64\n requestBody:\n content:\n application/x-www-form-urlencoded:\n schema:\n type: object\n properties:\n name:\n description: Updated name of the pet\n type: string\n status:\n description: Updated status of the pet\n type: string\n responses:\n \"405\":\n description: Invalid input\n delete:\n tags:\n - pet\n summary: Deletes a pet\n description: \"\"\n operationId: deletePet\n parameters:\n - name: api_key\n in: header\n required: false\n schema:\n type: string\n - name: petId\n in: path\n description: Pet id to delete\n required: true\n schema:\n type: integer\n format: int64\n responses:\n \"400\":\n description: Invalid ID supplied\n \"404\":\n description: Pet not found\n /store/inventory:\n get:\n tags:\n - store\n summary: Returns pet inventories by status\n description: Returns a map of status codes to quantities\n operationId: getInventory\n responses:\n \"200\":\n description: successful operation\n content:\n application/json:\n schema:\n type: object\n additionalProperties:\n type: integer\n format: int32\n /store/order:\n post:\n tags:\n - store\n summary: Place an order for a pet\n description: \"\"\n operationId: placeOrder\n requestBody:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/Order\"\n description: order placed for purchasing the pet\n required: true\n responses:\n \"200\":\n description: successful operation\n content:\n application/xml:\n schema:\n $ref: \"#/components/schemas/Order\"\n application/json:\n schema:\n $ref: \"#/components/schemas/Order\"\n \"400\":\n description: Invalid Order\n \"/store/order/{orderId}\":\n get:\n tags:\n - store\n summary: Find purchase order by ID\n description: For valid response try integer IDs with value >= 1 and <= 10. Other\n values will generated exceptions\n operationId: getOrderById\n parameters:\n - name: orderId\n in: path\n description: ID of pet that needs to be fetched\n required: true\n schema:\n type: integer\n format: int64\n minimum: 1\n maximum: 10\n responses:\n \"200\":\n description: successful operation\n content:\n application/xml:\n schema:\n $ref: \"#/components/schemas/Order\"\n application/json:\n schema:\n $ref: \"#/components/schemas/Order\"\n \"400\":\n description: Invalid ID supplied\n \"404\":\n description: Order not found\n delete:\n tags:\n - store\n summary: Delete purchase order by ID\n description: For valid response try integer IDs with positive integer value. Negative\n or non-integer values will generate API errors\n operationId: deleteOrder\n parameters:\n - name: orderId\n in: path\n description: ID of the order that needs to be deleted\n required: true\n schema:\n type: integer\n format: int64\n minimum: 1\n responses:\n \"400\":\n description: Invalid ID supplied\n \"404\":\n description: Order not found\n /user:\n post:\n tags:\n - user\n summary: Create user\n description: This can only be done by the logged in user.\n operationId: createUser\n requestBody:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/User\"\n description: Created user object\n required: true\n responses:\n default:\n description: successful operation\n /user/createWithArray:\n post:\n tags:\n - user\n summary: Creates list of users with given input array\n description: \"\"\n operationId: createUsersWithArrayInput\n requestBody:\n $ref: \"#/components/requestBodies/UserArray\"\n responses:\n default:\n description: successful operation\n /user/createWithList:\n post:\n tags:\n - user\n summary: Creates list of users with given input array\n description: \"\"\n operationId: createUsersWithListInput\n requestBody:\n $ref: \"#/components/requestBodies/UserArray\"\n responses:\n default:\n description: successful operation\n /user/login:\n get:\n tags:\n - user\n summary: Logs user into the system\n description: \"\"\n operationId: loginUser\n parameters:\n - name: username\n in: query\n description: The user name for login\n required: true\n schema:\n type: string\n - name: password\n in: query\n description: The password for login in clear text\n required: true\n schema:\n type: string\n responses:\n \"200\":\n description: successful operation\n headers:\n X-Rate-Limit:\n description: calls per hour allowed by the user\n schema:\n type: integer\n format: int32\n X-Expires-After:\n description: date in UTC when token expires\n schema:\n type: string\n format: date-time\n content:\n application/xml:\n schema:\n type: string\n application/json:\n schema:\n type: string\n \"400\":\n description: Invalid username/password supplied\n /user/logout:\n get:\n tags:\n - user\n summary: Logs out current logged in user session\n description: \"\"\n operationId: logoutUser\n responses:\n default:\n description: successful operation\n \"/user/{username}\":\n get:\n tags:\n - user\n summary: Get user by user name\n description: \"\"\n operationId: getUserByName\n parameters:\n - name: username\n in: path\n description: \"The name that needs to be fetched. Use user1 for testing. \"\n required: true\n schema:\n type: string\n responses:\n \"200\":\n description: successful operation\n content:\n application/xml:\n schema:\n $ref: \"#/components/schemas/User\"\n application/json:\n schema:\n $ref: \"#/components/schemas/User\"\n \"400\":\n description: Invalid username supplied\n \"404\":\n description: User not found\n put:\n tags:\n - user\n summary: Updated user\n description: This can only be done by the logged in user.\n operationId: updateUser\n parameters:\n - name: username\n in: path\n description: name that need to be updated\n required: true\n schema:\n type: string\n requestBody:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/User\"\n description: Updated user object\n required: true\n responses:\n \"400\":\n description: Invalid user supplied\n \"404\":\n description: User not found\n delete:\n tags:\n - user\n summary: Delete user\n description: This can only be done by the logged in user.\n operationId: deleteUser\n parameters:\n - name: username\n in: path\n description: The name that needs to be deleted\n required: true\n schema:\n type: string\n responses:\n \"400\":\n description: Invalid username supplied\n \"404\":\n description: User not found\nexternalDocs:\n description: Find out more about your mom\n url: http://your.mom\nservers:\n - url: https://petstore.swagger.io/v2\ncomponents:\n requestBodies:\n UserArray:\n content:\n application/json:\n schema:\n type: array\n items:\n $ref: \"#/components/schemas/User\"\n description: List of user object\n required: true\n Pet:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/Pet\"\n application/xml:\n schema:\n $ref: \"#/components/schemas/Pet\"\n description: Pet object that needs to be added to the store\n required: true\n schemas:\n Order:\n type: object\n properties:\n id:\n type: integer\n format: int64\n petId:\n type: integer\n format: int64\n quantity:\n type: integer\n format: int32\n shipDate:\n type: string\n format: date-time\n status:\n type: string\n description: Order Status\n enum:\n - placed\n - approved\n - delivered\n complete:\n type: boolean\n default: false\n xml:\n name: Order\n User:\n type: object\n properties:\n id:\n type: integer\n format: int64\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n password:\n type: string\n phone:\n type: string\n userStatus:\n type: integer\n format: int32\n description: User Status\n xml:\n name: User\n Category:\n type: object\n properties:\n id:\n type: integer\n format: int64\n name:\n type: string\n xml:\n name: Category\n Tag:\n type: object\n properties:\n id:\n type: integer\n format: int64\n name:\n type: string\n xml:\n name: Tag\n Pet:\n type: object\n required:\n - name\n - photoUrls\n properties:\n id:\n type: integer\n format: int64\n category:\n $ref: \"#/components/schemas/Category\"\n name:\n type: string\n example: doggie\n photoUrls:\n type: array\n xml:\n name: photoUrl\n wrapped: true\n items:\n type: string\n tags:\n type: array\n xml:\n name: tag\n wrapped: true\n items:\n $ref: \"#/components/schemas/Tag\"\n status:\n type: string\n description: pet status in the store\n enum:\n - available\n - pending\n - sold\n xml:\n name: Pet\n ApiResponse:\n type: object\n properties:\n code:\n type: integer\n format: int32\n type:\n type: string\n message:\n type: string","contentType":"yaml","_type":"api_spec"},{"_id":"env_c42d5b08a21141908834b43e42ee6e46","parentId":"env_70d3512c1c8840df95de5b7dac78ac9f","modified":1686541816225,"created":1686303739938,"name":"Dev","data":{"scheme":"http","host":"localhost","port":3000,"base_path":"api"},"dataPropertyOrder":{"&":["scheme","host","port","base_path"]},"color":null,"isPrivate":false,"metaSortKey":1686303739938,"_type":"environment"}]} |