From 8b922d23a26f3f466e4bcc19a9efa7b3464246d7 Mon Sep 17 00:00:00 2001 From: Vinay Ingalahalli Date: Tue, 14 Apr 2026 21:44:06 +0530 Subject: [PATCH 1/5] Fix governance violations in spec --- .postman/resources.yaml | 7 +++++++ contract/index.yaml | 1 + .../environments/Staging Environment.environment.yaml | 9 +++++++++ postman/globals/workspace.globals.yaml | 2 ++ 4 files changed, 19 insertions(+) create mode 100644 .postman/resources.yaml create mode 100644 postman/environments/Staging Environment.environment.yaml create mode 100644 postman/globals/workspace.globals.yaml diff --git a/.postman/resources.yaml b/.postman/resources.yaml new file mode 100644 index 0000000..0233f5e --- /dev/null +++ b/.postman/resources.yaml @@ -0,0 +1,7 @@ +# Use this workspace to collaborate +workspace: + id: "" + +localResources: + specs: + - ../contract/index.yaml 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/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: [] From 85df0b7fc3f7d05ba227e0ba483c6b916475cb09 Mon Sep 17 00:00:00 2001 From: Vinay Ingalahalli Date: Tue, 14 Apr 2026 21:51:26 +0530 Subject: [PATCH 2/5] Integration test suite --- .postman/resources.yaml | 2 +- .postman/workflows.yaml | 11 +++++++ .../.resources/definition.yaml | 12 +++++++ .../v1/.resources/definition.yaml | 2 ++ .../v1/users/.resources/definition.yaml | 2 ++ .../examples/Error occurred.example.yaml | 31 +++++++++++++++++ .../examples/Unauthorized.example.yaml | 31 +++++++++++++++++ .../User logged in successfully.example.yaml | 33 +++++++++++++++++++ .../v1/users/login/.resources/definition.yaml | 2 ++ .../v1/users/login/Log in a user.request.yaml | 23 +++++++++++++ .../examples/Error occurred.example.yaml | 31 +++++++++++++++++ .../User registered successfully.example.yaml | 33 +++++++++++++++++++ .../users/register/.resources/definition.yaml | 2 ++ .../register/Register a new user.request.yaml | 29 ++++++++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++++++++ .../User deleted successfully.example.yaml | 27 +++++++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++++++++ .../Successful operation.example.yaml | 28 ++++++++++++++++ .../examples/User not found.example.yaml | 27 +++++++++++++++ .../examples/Error occurred.example.yaml | 33 +++++++++++++++++++ .../User updated successfully.example.yaml | 33 +++++++++++++++++++ .../v1/users/{id}/.resources/definition.yaml | 2 ++ .../v1/users/{id}/Delete a user.request.yaml | 19 +++++++++++ .../users/{id}/Retrieve a user.request.yaml | 22 +++++++++++++ .../v1/users/{id}/Update a user.request.yaml | 24 ++++++++++++++ postman/environments/Stage.environment.yaml | 10 ++++++ 26 files changed, 522 insertions(+), 1 deletion(-) create mode 100644 .postman/workflows.yaml create mode 100644 postman/collections/User API Integration Test Suite/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/Log in a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register/Register a new user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/Delete a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/Retrieve a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/Update a user.request.yaml create mode 100644 postman/environments/Stage.environment.yaml diff --git a/.postman/resources.yaml b/.postman/resources.yaml index 0233f5e..5b7a51b 100644 --- a/.postman/resources.yaml +++ b/.postman/resources.yaml @@ -1,6 +1,6 @@ # Use this workspace to collaborate workspace: - id: "" + id: 60516508-172c-45cd-8356-b979bc84300f localResources: specs: diff --git a/.postman/workflows.yaml b/.postman/workflows.yaml new file mode 100644 index 0000000..9603a59 --- /dev/null +++ b/.postman/workflows.yaml @@ -0,0 +1,11 @@ +# 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 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..e469707 --- /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: 3259e0d0-0863-44f9-abbb-de0effd8433c + 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/.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/.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.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.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..2c01283 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/login/Log in a user.request.yaml @@ -0,0 +1,23 @@ +$kind: http-request +name: Log in a user +url: "{{baseUrl}}/v1/users/login" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{username}}", + "password": "{{password}}" + } +examples: ./.resources/Log in a user.resources/examples +order: 1000 +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 201", function () { + pm.response.to.have.status(201); + }); + language: text/javascript 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.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..4d39c78 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/register/Register a new user.request.yaml @@ -0,0 +1,29 @@ +$kind: http-request +name: Register a new user +url: "{{baseUrl}}/v1/users/register" +method: POST +headers: + Content-Type: application/json + Accept: application/json +body: + type: json + content: |- + { + "username": "{{$randomUserName}}", + "password": "{{$randomPassword}}" + } +examples: ./.resources/Register a new user.resources/examples +order: 1000 +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 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.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.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.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.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.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.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..f2ac47f --- /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: "" +examples: ./.resources/Delete a user.resources/examples +order: 3000 +scripts: + - type: afterResponse + language: text/javascript + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); 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..b265718 --- /dev/null +++ b/postman/collections/User API Integration Test Suite/v1/users/{id}/Retrieve a user.request.yaml @@ -0,0 +1,22 @@ +$kind: http-request +name: Retrieve a user +url: "{{baseUrl}}/v1/users/:id" +method: GET +headers: + Accept: application/json +pathVariables: + - key: id + value: "{{id}}" + $type: "" +body: + type: text + content: "" +examples: ./.resources/Retrieve a user.resources/examples +order: 1000 +scripts: + - type: afterResponse + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); + language: text/javascript 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..a7042f6 --- /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" + } +examples: ./.resources/Update a user.resources/examples +order: 2000 +scripts: + - type: afterResponse + language: text/javascript + code: |- + pm.test("Status code is 200", function () { + pm.response.to.have.status(200); + }); diff --git a/postman/environments/Stage.environment.yaml b/postman/environments/Stage.environment.yaml new file mode 100644 index 0000000..5050512 --- /dev/null +++ b/postman/environments/Stage.environment.yaml @@ -0,0 +1,10 @@ +name: Stage +values: + - key: baseUrl + value: 'https://customer-education.postmanlabs.com' + enabled: true + - key: apiKey + value: '{{vault:api}}' + enabled: true + type: secret +color: 240 From f7c7c9e3b55d55fb0828c68a9528915a4ffda366 Mon Sep 17 00:00:00 2001 From: vinayingalahalli-maker Date: Tue, 14 Apr 2026 22:08:36 +0530 Subject: [PATCH 3/5] Create main.yml --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml 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 From fb6d0ebb925451e1b4e3ef6c8902aa3961cab90e Mon Sep 17 00:00:00 2001 From: Vinay Ingalahalli Date: Tue, 14 Apr 2026 22:14:55 +0530 Subject: [PATCH 4/5] Add documentation collection --- .postman/resources.yaml | 11 ++++ .postman/workflows.yaml | 4 ++ .../.resources/definition.yaml | 2 +- .../v1/users-1/.resources/definition.yaml | 3 + .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred-2.example.yaml | 32 +++++++++++ .../examples/Error occurred-3.example.yaml | 32 +++++++++++ .../examples/Error occurred.example.yaml | 31 ++++++++++ .../examples/Unauthorized-1.example.yaml | 32 +++++++++++ .../examples/Unauthorized-2.example.yaml | 32 +++++++++++ .../examples/Unauthorized-3.example.yaml | 32 +++++++++++ .../examples/Unauthorized.example.yaml | 31 ++++++++++ ...User logged in successfully-1.example.yaml | 34 +++++++++++ ...User logged in successfully-2.example.yaml | 34 +++++++++++ ...User logged in successfully-3.example.yaml | 34 +++++++++++ .../User logged in successfully.example.yaml | 33 +++++++++++ .../login-1/.resources/definition.yaml | 3 + .../login-1/Log in a user.request.yaml | 22 ++++++++ .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred-2.example.yaml | 32 +++++++++++ .../examples/Error occurred-3.example.yaml | 32 +++++++++++ .../examples/Error occurred.example.yaml | 31 ++++++++++ .../examples/Unauthorized-1.example.yaml | 32 +++++++++++ .../examples/Unauthorized-2.example.yaml | 32 +++++++++++ .../examples/Unauthorized-3.example.yaml | 32 +++++++++++ .../examples/Unauthorized.example.yaml | 31 ++++++++++ ...User logged in successfully-1.example.yaml | 34 +++++++++++ ...User logged in successfully-2.example.yaml | 34 +++++++++++ ...User logged in successfully-3.example.yaml | 34 +++++++++++ .../User logged in successfully.example.yaml | 33 +++++++++++ .../users-1/login/.resources/definition.yaml | 2 + .../users-1/login/Log in a user.request.yaml | 22 ++++++++ .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred.example.yaml | 31 ++++++++++ ...ser registered successfully-1.example.yaml | 34 +++++++++++ .../User registered successfully.example.yaml | 33 +++++++++++ .../register-1/.resources/definition.yaml | 3 + .../Register a new user.request.yaml | 28 ++++++++++ .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred.example.yaml | 31 ++++++++++ ...ser registered successfully-1.example.yaml | 34 +++++++++++ .../User registered successfully.example.yaml | 33 +++++++++++ .../register/.resources/definition.yaml | 2 + .../register/Register a new user.request.yaml | 56 +++++++++++++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../User deleted successfully-1.example.yaml | 28 ++++++++++ .../User deleted successfully-2.example.yaml | 28 ++++++++++ .../User deleted successfully-3.example.yaml | 28 ++++++++++ .../User deleted successfully.example.yaml | 27 +++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../Successful operation-1.example.yaml | 29 ++++++++++ .../Successful operation-2.example.yaml | 29 ++++++++++ .../Successful operation-3.example.yaml | 29 ++++++++++ .../Successful operation.example.yaml | 28 ++++++++++ .../examples/User not found-1.example.yaml | 28 ++++++++++ .../examples/User not found-2.example.yaml | 28 ++++++++++ .../examples/User not found-3.example.yaml | 28 ++++++++++ .../examples/User not found.example.yaml | 27 +++++++++ .../examples/Error occurred-1.example.yaml | 34 +++++++++++ .../examples/Error occurred-2.example.yaml | 34 +++++++++++ .../examples/Error occurred-3.example.yaml | 34 +++++++++++ .../examples/Error occurred.example.yaml | 33 +++++++++++ .../User updated successfully-1.example.yaml | 34 +++++++++++ .../User updated successfully-2.example.yaml | 34 +++++++++++ .../User updated successfully-3.example.yaml | 34 +++++++++++ .../User updated successfully.example.yaml | 33 +++++++++++ .../users-1/{id}-1/.resources/definition.yaml | 3 + .../users-1/{id}-1/Delete a user.request.yaml | 19 +++++++ .../{id}-1/Retrieve a user.request.yaml | 19 +++++++ .../users-1/{id}-1/Update a user.request.yaml | 24 ++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../User deleted successfully-1.example.yaml | 28 ++++++++++ .../User deleted successfully-2.example.yaml | 28 ++++++++++ .../User deleted successfully-3.example.yaml | 28 ++++++++++ .../User deleted successfully.example.yaml | 27 +++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../Successful operation-1.example.yaml | 29 ++++++++++ .../Successful operation-2.example.yaml | 29 ++++++++++ .../Successful operation-3.example.yaml | 29 ++++++++++ .../Successful operation.example.yaml | 28 ++++++++++ .../examples/User not found-1.example.yaml | 28 ++++++++++ .../examples/User not found-2.example.yaml | 28 ++++++++++ .../examples/User not found-3.example.yaml | 28 ++++++++++ .../examples/User not found.example.yaml | 27 +++++++++ .../examples/Error occurred-1.example.yaml | 34 +++++++++++ .../examples/Error occurred-2.example.yaml | 34 +++++++++++ .../examples/Error occurred-3.example.yaml | 34 +++++++++++ .../examples/Error occurred.example.yaml | 33 +++++++++++ .../User updated successfully-1.example.yaml | 34 +++++++++++ .../User updated successfully-2.example.yaml | 34 +++++++++++ .../User updated successfully-3.example.yaml | 34 +++++++++++ .../User updated successfully.example.yaml | 33 +++++++++++ .../users-1/{id}/.resources/definition.yaml | 2 + .../users-1/{id}/Delete a user.request.yaml | 19 +++++++ .../users-1/{id}/Retrieve a user.request.yaml | 19 +++++++ .../users-1/{id}/Update a user.request.yaml | 24 ++++++++ .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred-2.example.yaml | 32 +++++++++++ .../examples/Error occurred-3.example.yaml | 32 +++++++++++ .../examples/Error occurred.example.yaml | 31 ++++++++++ .../examples/Unauthorized-1.example.yaml | 32 +++++++++++ .../examples/Unauthorized-2.example.yaml | 32 +++++++++++ .../examples/Unauthorized-3.example.yaml | 32 +++++++++++ .../examples/Unauthorized.example.yaml | 31 ++++++++++ ...User logged in successfully-1.example.yaml | 34 +++++++++++ ...User logged in successfully-2.example.yaml | 34 +++++++++++ ...User logged in successfully-3.example.yaml | 34 +++++++++++ .../User logged in successfully.example.yaml | 33 +++++++++++ .../users/login-1/.resources/definition.yaml | 3 + .../users/login-1/Log in a user.request.yaml | 22 ++++++++ .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred-2.example.yaml | 32 +++++++++++ .../examples/Error occurred-3.example.yaml | 32 +++++++++++ .../examples/Unauthorized-1.example.yaml | 32 +++++++++++ .../examples/Unauthorized-2.example.yaml | 32 +++++++++++ .../examples/Unauthorized-3.example.yaml | 32 +++++++++++ ...User logged in successfully-1.example.yaml | 34 +++++++++++ ...User logged in successfully-2.example.yaml | 34 +++++++++++ ...User logged in successfully-3.example.yaml | 34 +++++++++++ .../v1/users/login/Log in a user.request.yaml | 5 +- .../examples/Error occurred-1.example.yaml | 32 +++++++++++ .../examples/Error occurred.example.yaml | 31 ++++++++++ ...ser registered successfully-1.example.yaml | 34 +++++++++++ .../User registered successfully.example.yaml | 33 +++++++++++ .../register-1/.resources/definition.yaml | 3 + .../Register a new user.request.yaml | 28 ++++++++++ .../examples/Error occurred-1.example.yaml | 32 +++++++++++ ...ser registered successfully-1.example.yaml | 34 +++++++++++ .../register/Register a new user.request.yaml | 5 +- .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../User deleted successfully-1.example.yaml | 28 ++++++++++ .../User deleted successfully-2.example.yaml | 28 ++++++++++ .../User deleted successfully-3.example.yaml | 28 ++++++++++ .../User deleted successfully.example.yaml | 27 +++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../Successful operation-1.example.yaml | 29 ++++++++++ .../Successful operation-2.example.yaml | 29 ++++++++++ .../Successful operation-3.example.yaml | 29 ++++++++++ .../Successful operation.example.yaml | 28 ++++++++++ .../examples/User not found-1.example.yaml | 28 ++++++++++ .../examples/User not found-2.example.yaml | 28 ++++++++++ .../examples/User not found-3.example.yaml | 28 ++++++++++ .../examples/User not found.example.yaml | 27 +++++++++ .../examples/Error occurred-1.example.yaml | 34 +++++++++++ .../examples/Error occurred-2.example.yaml | 34 +++++++++++ .../examples/Error occurred-3.example.yaml | 34 +++++++++++ .../examples/Error occurred.example.yaml | 33 +++++++++++ .../User updated successfully-1.example.yaml | 34 +++++++++++ .../User updated successfully-2.example.yaml | 34 +++++++++++ .../User updated successfully-3.example.yaml | 34 +++++++++++ .../User updated successfully.example.yaml | 33 +++++++++++ .../users/{id}-1/.resources/definition.yaml | 3 + .../users/{id}-1/Delete a user.request.yaml | 19 +++++++ .../users/{id}-1/Retrieve a user.request.yaml | 19 +++++++ .../users/{id}-1/Update a user.request.yaml | 24 ++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../User deleted successfully-1.example.yaml | 28 ++++++++++ .../User deleted successfully-2.example.yaml | 28 ++++++++++ .../User deleted successfully-3.example.yaml | 28 ++++++++++ .../examples/Error occurred-1.example.yaml | 28 ++++++++++ .../examples/Error occurred-2.example.yaml | 28 ++++++++++ .../examples/Error occurred-3.example.yaml | 28 ++++++++++ .../Successful operation-1.example.yaml | 29 ++++++++++ .../Successful operation-2.example.yaml | 29 ++++++++++ .../Successful operation-3.example.yaml | 29 ++++++++++ .../examples/User not found-1.example.yaml | 28 ++++++++++ .../examples/User not found-2.example.yaml | 28 ++++++++++ .../examples/User not found-3.example.yaml | 28 ++++++++++ .../examples/Error occurred-1.example.yaml | 34 +++++++++++ .../examples/Error occurred-2.example.yaml | 34 +++++++++++ .../examples/Error occurred-3.example.yaml | 34 +++++++++++ .../User updated successfully-1.example.yaml | 34 +++++++++++ .../User updated successfully-2.example.yaml | 34 +++++++++++ .../User updated successfully-3.example.yaml | 34 +++++++++++ .../v1/users/{id}/Delete a user.request.yaml | 6 +- .../users/{id}/Retrieve a user.request.yaml | 9 +-- .../v1/users/{id}/Update a user.request.yaml | 6 +- .../.resources/definition.yaml | 12 ++++ .../v1/.resources/definition.yaml | 2 + .../v1/users/.resources/definition.yaml | 2 + .../examples/Error occurred.example.yaml | 31 ++++++++++ .../examples/Unauthorized.example.yaml | 31 ++++++++++ .../User logged in successfully.example.yaml | 33 +++++++++++ .../v1/users/login/.resources/definition.yaml | 2 + .../v1/users/login/Log in a user.request.yaml | 15 +++++ .../examples/Error occurred.example.yaml | 33 +++++++++++ .../User registered successfully.example.yaml | 35 ++++++++++++ .../users/register/.resources/definition.yaml | 2 + .../register/Register a new user.request.yaml | 37 ++++++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../User deleted successfully.example.yaml | 27 +++++++++ .../examples/Error occurred.example.yaml | 27 +++++++++ .../Successful operation.example.yaml | 28 ++++++++++ .../examples/User not found.example.yaml | 27 +++++++++ .../examples/Error occurred.example.yaml | 33 +++++++++++ .../User updated successfully.example.yaml | 33 +++++++++++ .../v1/users/{id}/.resources/definition.yaml | 2 + .../v1/users/{id}/Delete a user.request.yaml | 12 ++++ .../users/{id}/Retrieve a user.request.yaml | 12 ++++ .../v1/users/{id}/Update a user.request.yaml | 17 ++++++ 220 files changed, 5931 insertions(+), 19 deletions(-) create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml create mode 100644 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 create mode 100644 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 create mode 100644 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 create mode 100644 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 create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login-1/Log in a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml create mode 100644 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 create mode 100644 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 create mode 100644 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 create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/login/Log in a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml create mode 100644 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 create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register-1/Register a new user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/register/Register a new user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Delete a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Retrieve a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}-1/Update a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/Delete a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/Retrieve a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users-1/{id}/Update a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/Unauthorized.example.yaml create mode 100644 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 create mode 100644 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 create mode 100644 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 create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login-1/Log in a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/Register a new user.resources/examples/User registered successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register-1/Register a new user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Retrieve a user.resources/examples/User not found.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/Update a user.resources/examples/User updated successfully.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/.resources/definition.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/Delete a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/Retrieve a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}-1/Update a user.request.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred-3.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-1.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-2.example.yaml create mode 100644 postman/collections/User API Integration Test Suite/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully-3.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/.resources/definition.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/.resources/definition.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/.resources/definition.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/Unauthorized.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/login/.resources/Log in a user.resources/examples/User logged in successfully.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/login/.resources/definition.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/login/Log in a user.request.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/register/.resources/Register a new user.resources/examples/User registered successfully.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/register/.resources/definition.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/register/Register a new user.request.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Delete a user.resources/examples/User deleted successfully.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/Successful operation.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Retrieve a user.resources/examples/User not found.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/Error occurred.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/Update a user.resources/examples/User updated successfully.example.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/.resources/definition.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/Delete a user.request.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/Retrieve a user.request.yaml create mode 100644 postman/collections/UserAPI-Documentation/v1/users/{id}/Update a user.request.yaml diff --git a/.postman/resources.yaml b/.postman/resources.yaml index 5b7a51b..111ec27 100644 --- a/.postman/resources.yaml +++ b/.postman/resources.yaml @@ -5,3 +5,14 @@ workspace: 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 index 9603a59..3fc8ec5 100644 --- a/.postman/workflows.yaml +++ b/.postman/workflows.yaml @@ -9,3 +9,7 @@ workflows: 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/postman/collections/User API Integration Test Suite/.resources/definition.yaml b/postman/collections/User API Integration Test Suite/.resources/definition.yaml index e469707..a9afa0e 100644 --- a/postman/collections/User API Integration Test Suite/.resources/definition.yaml +++ b/postman/collections/User API Integration Test Suite/.resources/definition.yaml @@ -3,7 +3,7 @@ description: this is for webinar variables: baseUrl: / auth: - - id: 3259e0d0-0863-44f9-abbb-de0effd8433c + - id: 60a7486b-cb00-48ae-9e17-4b426c1e3d6d type: apikey name: apikey auth credentials: 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/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/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/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/Log in a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/login/Log in a user.request.yaml index 2c01283..9b497dc 100644 --- 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 @@ -1,5 +1,4 @@ $kind: http-request -name: Log in a user url: "{{baseUrl}}/v1/users/login" method: POST headers: @@ -12,8 +11,6 @@ body: "username": "{{username}}", "password": "{{password}}" } -examples: ./.resources/Log in a user.resources/examples -order: 1000 scripts: - type: afterResponse code: |- @@ -21,3 +18,5 @@ scripts: 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/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/Register a new user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/register/Register a new user.request.yaml index 4d39c78..d003f27 100644 --- 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 @@ -1,5 +1,4 @@ $kind: http-request -name: Register a new user url: "{{baseUrl}}/v1/users/register" method: POST headers: @@ -12,8 +11,6 @@ body: "username": "{{$randomUserName}}", "password": "{{$randomPassword}}" } -examples: ./.resources/Register a new user.resources/examples -order: 1000 scripts: - type: afterResponse code: | @@ -27,3 +24,5 @@ scripts: 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/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/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/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/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/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/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}/Delete a user.request.yaml b/postman/collections/User API Integration Test Suite/v1/users/{id}/Delete a user.request.yaml index f2ac47f..4fb6744 100644 --- 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 @@ -8,12 +8,12 @@ pathVariables: body: type: text content: "" -examples: ./.resources/Delete a user.resources/examples -order: 3000 scripts: - type: afterResponse - language: text/javascript 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 index b265718..2af6794 100644 --- 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 @@ -1,18 +1,13 @@ $kind: http-request -name: Retrieve a user url: "{{baseUrl}}/v1/users/:id" method: GET headers: Accept: application/json pathVariables: - - key: id - value: "{{id}}" - $type: "" + id: "{{id}}" body: type: text content: "" -examples: ./.resources/Retrieve a user.resources/examples -order: 1000 scripts: - type: afterResponse code: |- @@ -20,3 +15,5 @@ scripts: 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 index a7042f6..691b8ec 100644 --- 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 @@ -13,12 +13,12 @@ body: "username": "string", "password": "string" } -examples: ./.resources/Update a user.resources/examples -order: 2000 scripts: - type: afterResponse - language: text/javascript 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 From 05b77fb42d82b8260d6ab6dac50db6b3e16cccaa Mon Sep 17 00:00:00 2001 From: Vinay Ingalahalli Date: Tue, 14 Apr 2026 22:18:12 +0530 Subject: [PATCH 5/5] env updated --- postman/environments/Stage.environment.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/postman/environments/Stage.environment.yaml b/postman/environments/Stage.environment.yaml index 5050512..b8c2772 100644 --- a/postman/environments/Stage.environment.yaml +++ b/postman/environments/Stage.environment.yaml @@ -4,7 +4,6 @@ values: value: 'https://customer-education.postmanlabs.com' enabled: true - key: apiKey - value: '{{vault:api}}' + value: '1234' enabled: true - type: secret color: 240