diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..280c481 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: Automated API tests using Postman CLI + +on: push + +jobs: + automated-api-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Postman CLI + run: | + curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh + - name: Login to Postman CLI + run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }} + - name: Run API tests + run: | + postman collection run "53985486-8a1d272c-91a2-4d1a-821a-580657e228e6" -e "53985486-567ea8c5-6d8a-563e-bda9-9a55d5d37be3" --report-events diff --git a/.postman/resources.yaml b/.postman/resources.yaml new file mode 100644 index 0000000..111ec27 --- /dev/null +++ b/.postman/resources.yaml @@ -0,0 +1,18 @@ +# Use this workspace to collaborate +workspace: + id: 60516508-172c-45cd-8356-b979bc84300f + +localResources: + specs: + - ../contract/index.yaml + +# Each entry here maps a local resource to one or more corresponding objects in Postman Cloud + +cloudResources: + environments: + ../postman/environments/Stage.environment.yaml: 567ea8c5-6d8a-563e-bda9-9a55d5d37be3 + ../postman/environments/Staging Environment.environment.yaml: ae2364ed-fa80-59b7-8e3d-32deca3c4930 + specs: + ../contract/index.yaml: c2593f6a-1c62-4685-b7e4-ce3b9ff0e55c + collections: + ../postman/collections/User API Integration Test Suite: 53985486-8a1d272c-91a2-4d1a-821a-580657e228e6 diff --git a/.postman/workflows.yaml b/.postman/workflows.yaml new file mode 100644 index 0000000..3fc8ec5 --- /dev/null +++ b/.postman/workflows.yaml @@ -0,0 +1,15 @@ +# This is a Workflow metadata file for defining entity relationships in this workspace. +# Each workflow defines relations between entities and may include optional behavior/settings. +# The Paths are relative to the .postman directory (avoid absolute paths). +# Keep relation entries explicit and avoid duplicate pairs within the same workflow. +# This file is declarative metadata and does not execute workflows by itself. +workflows: + syncSpecToCollection: + - spec: ../contract/index.yaml + collection: ../postman/collections/User API Integration Test Suite + options: + syncExamples: false + - spec: ../contract/index.yaml + collection: ../postman/collections/UserAPI-Documentation + options: + syncExamples: false diff --git a/contract/index.yaml b/contract/index.yaml index cb9181a..be20ce0 100644 --- a/contract/index.yaml +++ b/contract/index.yaml @@ -1,5 +1,6 @@ openapi: 3.0.0 info: + description: this is for webinar title: User API version: 1.0.0 paths: diff --git a/postman/collections/User API Integration Test Suite/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/.resources/definition.yaml new file mode 100644 index 0000000..a9afa0e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/.resources/definition.yaml @@ -0,0 +1,12 @@ +$kind: collection +description: this is for webinar +variables: + baseUrl: / +auth: + - id: 60a7486b-cb00-48ae-9e17-4b426c1e3d6d + type: apikey + name: apikey auth + credentials: + key: X-API-Key + value: "{{apiKey}}" + in: header diff --git a/postman/collections/User API Integration Test Suite/v1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/.resources/definition.yaml new file mode 100644 index 0000000..8aa3076 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: users +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..9c9bf47 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..b99625c --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..f52481a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..c77403e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml new file mode 100644 index 0000000..fdab0c1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml new file mode 100644 index 0000000..7bc8a99 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml new file mode 100644 index 0000000..e5f0e4a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml new file mode 100644 index 0000000..546f8fd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml new file mode 100644 index 0000000..298fafa --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml new file mode 100644 index 0000000..480e370 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml new file mode 100644 index 0000000..fdc439b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml new file mode 100644 index 0000000..5fbf556 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/definition.yaml new file mode 100644 index 0000000..be51cf9 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: login +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login-1/Log in a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/Log in a user.request.yaml new file mode 100644 index 0000000..9b497dc --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login-1/Log in a user.request.yaml @@ -0,0 +1,22 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/login" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{username}}", + "password": "{{password}}" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + language: text/javascript +examples: ./.resources/Log in a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..9c9bf47 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..b99625c --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..f52481a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..c77403e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml new file mode 100644 index 0000000..fdab0c1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml new file mode 100644 index 0000000..7bc8a99 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml new file mode 100644 index 0000000..e5f0e4a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml new file mode 100644 index 0000000..546f8fd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml new file mode 100644 index 0000000..298fafa --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml new file mode 100644 index 0000000..480e370 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml new file mode 100644 index 0000000..fdc439b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml new file mode 100644 index 0000000..5fbf556 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/definition.yaml new file mode 100644 index 0000000..6522e17 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/login/Log in a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/login/Log in a user.request.yaml new file mode 100644 index 0000000..9b497dc --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/login/Log in a user.request.yaml @@ -0,0 +1,22 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/login" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{username}}", + "password": "{{password}}" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + language: text/javascript +examples: ./.resources/Log in a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..f251064 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..ebe0f21 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml new file mode 100644 index 0000000..8fb5b0f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User registered successfully +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml new file mode 100644 index 0000000..3237f8e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/definition.yaml new file mode 100644 index 0000000..298ae27 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: register +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register-1/Register a new user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/Register a new user.request.yaml new file mode 100644 index 0000000..d003f27 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register-1/Register a new user.request.yaml @@ -0,0 +1,28 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/register" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{$randomUserName}}", + "password": "{{$randomPassword}}" + } +scripts: + - type: afterResponse + code: | + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + + const jsonData = pm.response.json(); + pm.variables.set("username", jsonData.username); + pm.variables.set("id", jsonData.id); + const requestBody = JSON.parse(pm.request.body) + pm.variables.set("password", requestBody.password); + language: text/javascript +examples: ./.resources/Register a new user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..f251064 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..ebe0f21 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml new file mode 100644 index 0000000..8fb5b0f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User registered successfully +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml new file mode 100644 index 0000000..3237f8e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/register/Register a new user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/register/Register a new user.request.yaml new file mode 100644 index 0000000..c1f9080 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/register/Register a new user.request.yaml @@ -0,0 +1,56 @@ +$kind: http-request +description: |- + ## Register a New User + + Creates a new user account in the system. On success, returns the newly created user's details including their unique `id` and `username`. + + ### Request Body + | Field | Type | Required | Description | + |------------|--------|----------|------------------------------------| + | `username` | string | ✅ Yes | The desired username for the account | + | `password` | string | ✅ Yes | The account password | + + ### Response (201 Created) + | Field | Type | Description | + |------------|--------|--------------------------------------| + | `id` | string | Unique identifier for the new user | + | `username` | string | The registered username | + + ### Post-Response Behaviour + After a successful registration, the following variables are automatically set for use in downstream requests: + - `username` — the registered username + - `id` — the new user's unique ID + - `password` — the password used during registration + + ### Errors + | Status | Description | + |--------|--------------------------------------------------| + | `400` | Bad request — missing or invalid fields | + | `409` | Conflict — a user with that username already exists | +url: '{{baseUrl}}/v1/users/register' +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{$randomUserName}}", + "password": "{{$randomPassword}}" + } +scripts: + - type: afterResponse + code: | + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + + const jsonData = pm.response.json(); + pm.variables.set("username", jsonData.username); + pm.variables.set("id", jsonData.id); + const requestBody = JSON.parse(pm.request.body) + pm.variables.set("password", requestBody.password); + language: text/javascript +examples: ./.resources/Register a new user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..a824d94 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..9375eaf --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..8b17bd4 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..178066b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml new file mode 100644 index 0000000..2f4c376 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml new file mode 100644 index 0000000..c778f01 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml new file mode 100644 index 0000000..d0074e0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml new file mode 100644 index 0000000..358e904 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..afae7dd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..50b90d1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..94c62ae --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..3e1f1f9 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml new file mode 100644 index 0000000..5dedec3 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml new file mode 100644 index 0000000..5e2914d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml new file mode 100644 index 0000000..a5512d5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml new file mode 100644 index 0000000..c6081c7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml new file mode 100644 index 0000000..0c21f38 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml new file mode 100644 index 0000000..ac15d5d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml new file mode 100644 index 0000000..8efacda --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml new file mode 100644 index 0000000..dd7ace6 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..cb616c2 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..a505b06 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..1924fb5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..0ad9af7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml new file mode 100644 index 0000000..c454697 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml new file mode 100644 index 0000000..f0285d0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml new file mode 100644 index 0000000..486dafb --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml new file mode 100644 index 0000000..30c4a2f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/definition.yaml new file mode 100644 index 0000000..bacfeb7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: "{id}" +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Delete a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Delete a user.request.yaml new file mode 100644 index 0000000..4fb6744 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Delete a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: DELETE +headers: + Accept: application/json +pathVariables: + id: "4691" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Delete a user.resources/examples +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Retrieve a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Retrieve a user.request.yaml new file mode 100644 index 0000000..2af6794 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Retrieve a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: GET +headers: + Accept: application/json +pathVariables: + id: "{{id}}" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Retrieve a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Update a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Update a user.request.yaml new file mode 100644 index 0000000..691b8ec --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Update a user.request.yaml @@ -0,0 +1,24 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: PUT +headers: + Content-Type: application/json + Accept: application/json +pathVariables: + id: "4691" +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Update a user.resources/examples +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..a824d94 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..9375eaf --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..8b17bd4 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..178066b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml new file mode 100644 index 0000000..2f4c376 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml new file mode 100644 index 0000000..c778f01 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml new file mode 100644 index 0000000..d0074e0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml new file mode 100644 index 0000000..358e904 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..afae7dd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..50b90d1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..94c62ae --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..3e1f1f9 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml new file mode 100644 index 0000000..5dedec3 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml new file mode 100644 index 0000000..5e2914d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml new file mode 100644 index 0000000..a5512d5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml new file mode 100644 index 0000000..c6081c7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml new file mode 100644 index 0000000..0c21f38 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml new file mode 100644 index 0000000..ac15d5d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml new file mode 100644 index 0000000..8efacda --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml new file mode 100644 index 0000000..dd7ace6 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..cb616c2 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..a505b06 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..1924fb5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..0ad9af7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml new file mode 100644 index 0000000..c454697 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml new file mode 100644 index 0000000..f0285d0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml new file mode 100644 index 0000000..486dafb --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml new file mode 100644 index 0000000..30c4a2f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/definition.yaml new file mode 100644 index 0000000..40bbb1c --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Delete a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Delete a user.request.yaml new file mode 100644 index 0000000..4fb6744 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Delete a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: DELETE +headers: + Accept: application/json +pathVariables: + id: "4691" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Delete a user.resources/examples +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Retrieve a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Retrieve a user.request.yaml new file mode 100644 index 0000000..2af6794 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Retrieve a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: GET +headers: + Accept: application/json +pathVariables: + id: "{{id}}" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Retrieve a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Update a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Update a user.request.yaml new file mode 100644 index 0000000..691b8ec --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users-1/{id}/Update a user.request.yaml @@ -0,0 +1,24 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: PUT +headers: + Content-Type: application/json + Accept: application/json +pathVariables: + id: "4691" +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Update a user.resources/examples +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..9c9bf47 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..b99625c --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..f52481a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..c77403e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml new file mode 100644 index 0000000..fdab0c1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml new file mode 100644 index 0000000..7bc8a99 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml new file mode 100644 index 0000000..e5f0e4a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml new file mode 100644 index 0000000..546f8fd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml new file mode 100644 index 0000000..298fafa --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml new file mode 100644 index 0000000..480e370 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml new file mode 100644 index 0000000..fdc439b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml new file mode 100644 index 0000000..5fbf556 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/definition.yaml new file mode 100644 index 0000000..be51cf9 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: login +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login-1/Log in a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/login-1/Log in a user.request.yaml new file mode 100644 index 0000000..9b497dc --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login-1/Log in a user.request.yaml @@ -0,0 +1,22 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/login" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{username}}", + "password": "{{password}}" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + language: text/javascript +examples: ./.resources/Log in a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..9c9bf47 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..b99625c --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..f52481a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..c77403e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml new file mode 100644 index 0000000..fdab0c1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml new file mode 100644 index 0000000..7bc8a99 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml new file mode 100644 index 0000000..e5f0e4a --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Unauthorized +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml new file mode 100644 index 0000000..546f8fd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml new file mode 100644 index 0000000..298fafa --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml new file mode 100644 index 0000000..480e370 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml new file mode 100644 index 0000000..fdc439b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User logged in successfully +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml new file mode 100644 index 0000000..5fbf556 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/definition.yaml new file mode 100644 index 0000000..6522e17 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/login/Log in a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/Log in a user.request.yaml new file mode 100644 index 0000000..9b497dc --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/Log in a user.request.yaml @@ -0,0 +1,22 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/login" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{username}}", + "password": "{{password}}" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + language: text/javascript +examples: ./.resources/Log in a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..f251064 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..ebe0f21 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml new file mode 100644 index 0000000..8fb5b0f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User registered successfully +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml new file mode 100644 index 0000000..3237f8e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/definition.yaml new file mode 100644 index 0000000..298ae27 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: register +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register-1/Register a new user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/register-1/Register a new user.request.yaml new file mode 100644 index 0000000..d003f27 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register-1/Register a new user.request.yaml @@ -0,0 +1,28 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/register" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{$randomUserName}}", + "password": "{{$randomPassword}}" + } +scripts: + - type: afterResponse + code: | + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + + const jsonData = pm.response.json(); + pm.variables.set("username", jsonData.username); + pm.variables.set("id", jsonData.id); + const requestBody = JSON.parse(pm.request.body) + pm.variables.set("password", requestBody.password); + language: text/javascript +examples: ./.resources/Register a new user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..f251064 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,32 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..ebe0f21 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml new file mode 100644 index 0000000..8fb5b0f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User registered successfully +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml new file mode 100644 index 0000000..3237f8e --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 1706, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/register/Register a new user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/Register a new user.request.yaml new file mode 100644 index 0000000..d003f27 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/Register a new user.request.yaml @@ -0,0 +1,28 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/register" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{$randomUserName}}", + "password": "{{$randomPassword}}" + } +scripts: + - type: afterResponse + code: | + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + + const jsonData = pm.response.json(); + pm.variables.set("username", jsonData.username); + pm.variables.set("id", jsonData.id); + const requestBody = JSON.parse(pm.request.body) + pm.variables.set("password", requestBody.password); + language: text/javascript +examples: ./.resources/Register a new user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..a824d94 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..9375eaf --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..8b17bd4 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..178066b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml new file mode 100644 index 0000000..2f4c376 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml new file mode 100644 index 0000000..c778f01 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml new file mode 100644 index 0000000..d0074e0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml new file mode 100644 index 0000000..358e904 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..afae7dd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..50b90d1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..94c62ae --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..3e1f1f9 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml new file mode 100644 index 0000000..5dedec3 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml new file mode 100644 index 0000000..5e2914d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml new file mode 100644 index 0000000..a5512d5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml new file mode 100644 index 0000000..c6081c7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml new file mode 100644 index 0000000..0c21f38 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml new file mode 100644 index 0000000..ac15d5d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml new file mode 100644 index 0000000..8efacda --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml new file mode 100644 index 0000000..dd7ace6 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..cb616c2 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..a505b06 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..1924fb5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..0ad9af7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml new file mode 100644 index 0000000..c454697 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml new file mode 100644 index 0000000..f0285d0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml new file mode 100644 index 0000000..486dafb --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml new file mode 100644 index 0000000..30c4a2f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/definition.yaml new file mode 100644 index 0000000..bacfeb7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/definition.yaml @@ -0,0 +1,3 @@ +$kind: collection +name: "{id}" +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Delete a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Delete a user.request.yaml new file mode 100644 index 0000000..4fb6744 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Delete a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: DELETE +headers: + Accept: application/json +pathVariables: + id: "4691" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Delete a user.resources/examples +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Retrieve a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Retrieve a user.request.yaml new file mode 100644 index 0000000..2af6794 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Retrieve a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: GET +headers: + Accept: application/json +pathVariables: + id: "{{id}}" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Retrieve a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Update a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Update a user.request.yaml new file mode 100644 index 0000000..691b8ec --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}-1/Update a user.request.yaml @@ -0,0 +1,24 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: PUT +headers: + Content-Type: application/json + Accept: application/json +pathVariables: + id: "4691" +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Update a user.resources/examples +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..a824d94 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..9375eaf --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..8b17bd4 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..178066b --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml new file mode 100644 index 0000000..2f4c376 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml new file mode 100644 index 0000000..c778f01 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml new file mode 100644 index 0000000..d0074e0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User deleted successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml new file mode 100644 index 0000000..358e904 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..afae7dd --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..50b90d1 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 9000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..94c62ae --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 12000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..3e1f1f9 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml new file mode 100644 index 0000000..5dedec3 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml new file mode 100644 index 0000000..5e2914d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml new file mode 100644 index 0000000..a5512d5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml @@ -0,0 +1,29 @@ +$kind: http-example +name: Successful operation +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 10000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml new file mode 100644 index 0000000..c6081c7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9223, + "username": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml new file mode 100644 index 0000000..0c21f38 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml new file mode 100644 index 0000000..ac15d5d --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml new file mode 100644 index 0000000..8efacda --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +name: User not found +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 11000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml new file mode 100644 index 0000000..dd7ace6 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml new file mode 100644 index 0000000..cb616c2 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 4000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml new file mode 100644 index 0000000..a505b06 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 6000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml new file mode 100644 index 0000000..1924fb5 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: Error occurred +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 8000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..0ad9af7 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml new file mode 100644 index 0000000..c454697 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml new file mode 100644 index 0000000..f0285d0 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 5000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml new file mode 100644 index 0000000..486dafb --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml @@ -0,0 +1,34 @@ +$kind: http-example +name: User updated successfully +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 7000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml new file mode 100644 index 0000000..30c4a2f --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "4691" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/definition.yaml new file mode 100644 index 0000000..40bbb1c --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/Delete a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/Delete a user.request.yaml new file mode 100644 index 0000000..4fb6744 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/Delete a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: DELETE +headers: + Accept: application/json +pathVariables: + id: "4691" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Delete a user.resources/examples +order: 3000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/Retrieve a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/Retrieve a user.request.yaml new file mode 100644 index 0000000..2af6794 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/Retrieve a user.request.yaml @@ -0,0 +1,19 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: GET +headers: + Accept: application/json +pathVariables: + id: "{{id}}" +body: + type: text + content: "" +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Retrieve a user.resources/examples +order: 1000 diff --git a/postman/collections/User API Integration Test Suite/v1/users/{id}/Update a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/Update a user.request.yaml new file mode 100644 index 0000000..691b8ec --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/Update a user.request.yaml @@ -0,0 +1,24 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: PUT +headers: + Content-Type: application/json + Accept: application/json +pathVariables: + id: "4691" +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript +examples: ./.resources/Update a user.resources/examples +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/.resources/definition.yaml b/postman/collections/UserAPI-Documentation/.resources/definition.yaml new file mode 100644 index 0000000..fe9628a --- /dev/null +++ b/postman/collections/UserAPI-Documentation/.resources/definition.yaml @@ -0,0 +1,12 @@ +$kind: collection +description: this is for webinar +variables: + baseUrl: / +auth: + - id: 9e3438ad-8629-42da-b19c-f75556d560e4 + type: apikey + name: apikey auth + credentials: + key: X-API-Key + value: "{{apiKey}}" + in: header diff --git a/postman/collections/UserAPI-Documentation/v1/.resources/definition.yaml b/postman/collections/UserAPI-Documentation/v1/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/.resources/definition.yaml b/postman/collections/UserAPI-Documentation/v1/users/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..c77403e --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml new file mode 100644 index 0000000..546f8fd --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml @@ -0,0 +1,31 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 401 + statusText: Unauthorized + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml new file mode 100644 index 0000000..e76a7d5 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/login" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 7053, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/login/.resources/definition.yaml b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/definition.yaml new file mode 100644 index 0000000..6522e17 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/login/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/login/Log in a user.request.yaml b/postman/collections/UserAPI-Documentation/v1/users/login/Log in a user.request.yaml new file mode 100644 index 0000000..76d34f9 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/login/Log in a user.request.yaml @@ -0,0 +1,15 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/login" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +examples: ./.resources/Log in a user.resources/examples +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..031e860 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +description: |- + An unexpected server-side error occurred while processing the registration request. The response body contains a `message` field with details about the error. Check server logs for more information and retry the request if the issue is transient. +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml new file mode 100644 index 0000000..5554ea3 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml @@ -0,0 +1,35 @@ +$kind: http-example +description: |- + A new user account was created successfully. The response includes the user's assigned `id`, their `username`, and a `token` for authenticating future requests. Store the token securely and include it in the `Authorization` header for protected endpoints. +request: + url: "{{baseUrl}}/v1/users/register" + method: POST + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 201 + statusText: Created + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 7053, + "username": "string", + "token": "string" + } +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/register/.resources/definition.yaml b/postman/collections/UserAPI-Documentation/v1/users/register/.resources/definition.yaml new file mode 100644 index 0000000..53d990d --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/register/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/register/Register a new user.request.yaml b/postman/collections/UserAPI-Documentation/v1/users/register/Register a new user.request.yaml new file mode 100644 index 0000000..5b18fab --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/register/Register a new user.request.yaml @@ -0,0 +1,37 @@ +$kind: http-request +name: Register a new user +description: |- + ## Register a New User + + Creates a new user account in the system. On success, returns the newly created user's details along with an authentication token that can be used for subsequent authenticated requests. + + ### Request Body + | Field | Type | Required | Description | + |------------|--------|----------|------------------------------------| + | `username` | string | Yes | The desired username for the account | + | `password` | string | Yes | The password for the account | + + ### Responses + | Status | Description | + |--------|--------------------------------------------------------------| + | `201` | User registered successfully. Returns user ID, username, and auth token. | + | `500` | Internal server error. Returns an error message. | + + ### Authentication + This endpoint requires an `X-API-Key` header. Include your API key with every request. + + > **Note:** Store the returned `token` securely — it is required to authenticate future requests on behalf of this user. +url: '{{baseUrl}}/v1/users/register' +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +examples: ./.resources/Register a new user.resources/examples +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..edb1794 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml new file mode 100644 index 0000000..5c95613 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: DELETE + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..178d2a0 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: text + content: "" +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 3000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml new file mode 100644 index 0000000..32be637 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml @@ -0,0 +1,28 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: text + content: "" +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "id": 9911, + "username": "string" + } +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml new file mode 100644 index 0000000..403469e --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml @@ -0,0 +1,27 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: GET + headers: + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: text + content: "" +response: + statusCode: 404 + statusText: Not Found + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml new file mode 100644 index 0000000..0f635f9 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 500 + statusText: Internal Server Error + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 2000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml new file mode 100644 index 0000000..f828b85 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml @@ -0,0 +1,33 @@ +$kind: http-example +request: + url: "{{baseUrl}}/v1/users/:id" + method: PUT + headers: + - key: Content-Type + value: application/json + - key: Accept + value: application/json + - key: X-API-Key + value: + description: "Added as a part of security scheme: apikey" + pathVariables: + id: "1354" + body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +response: + statusCode: 200 + statusText: OK + headers: + Content-Type: application/json + body: + type: json + content: |- + { + "message": "string" + } +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/definition.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/definition.yaml new file mode 100644 index 0000000..40bbb1c --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/definition.yaml @@ -0,0 +1,2 @@ +$kind: collection +order: 3000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/Delete a user.request.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/Delete a user.request.yaml new file mode 100644 index 0000000..71e6f4d --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/Delete a user.request.yaml @@ -0,0 +1,12 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: DELETE +headers: + Accept: application/json +pathVariables: + id: "1354" +body: + type: text + content: "" +examples: ./.resources/Delete a user.resources/examples +order: 3000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/Retrieve a user.request.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/Retrieve a user.request.yaml new file mode 100644 index 0000000..a6e9986 --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/Retrieve a user.request.yaml @@ -0,0 +1,12 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: GET +headers: + Accept: application/json +pathVariables: + id: "1354" +body: + type: text + content: "" +examples: ./.resources/Retrieve a user.resources/examples +order: 1000 diff --git a/postman/collections/UserAPI-Documentation/v1/users/{id}/Update a user.request.yaml b/postman/collections/UserAPI-Documentation/v1/users/{id}/Update a user.request.yaml new file mode 100644 index 0000000..166ecef --- /dev/null +++ b/postman/collections/UserAPI-Documentation/v1/users/{id}/Update a user.request.yaml @@ -0,0 +1,17 @@ +$kind: http-request +url: "{{baseUrl}}/v1/users/:id" +method: PUT +headers: + Content-Type: application/json + Accept: application/json +pathVariables: + id: "1354" +body: + type: json + content: |- + { + "username": "string", + "password": "string" + } +examples: ./.resources/Update a user.resources/examples +order: 2000 diff --git a/postman/environments/Stage.environment.yaml b/postman/environments/Stage.environment.yaml new file mode 100644 index 0000000..b8c2772 --- /dev/null +++ b/postman/environments/Stage.environment.yaml @@ -0,0 +1,9 @@ +name: Stage +values: + - key: baseUrl + value: 'https://customer-education.postmanlabs.com' + enabled: true + - key: apiKey + value: '1234' + enabled: true +color: 240 diff --git a/postman/environments/Staging Environment.environment.yaml b/postman/environments/Staging Environment.environment.yaml new file mode 100644 index 0000000..5156777 --- /dev/null +++ b/postman/environments/Staging Environment.environment.yaml @@ -0,0 +1,9 @@ +name: Staging Environment +values: + - key: baseUrl + value: 'https://customer-education.postmanlabs.com' + enabled: true + - key: apiKey + value: '{{vault:api}}' + enabled: true +color: 240 diff --git a/postman/globals/workspace.globals.yaml b/postman/globals/workspace.globals.yaml new file mode 100644 index 0000000..e96c6d6 --- /dev/null +++ b/postman/globals/workspace.globals.yaml @@ -0,0 +1,2 @@ +name: Globals +values: []