This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from weskoerber/fix/collection-wrapper-attrib
Merge into `develop` branch for review and update docs. Thanks for your contribution @weskoerber
- Loading branch information
Showing
5 changed files
with
304 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"collection": { | ||
"info": { | ||
"_postman_id": "0f93eca8-921e-4b0d-9ac0-15f96a56eae8", | ||
"name": "AuthBasic", | ||
"description": "Collection to test authorization global", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Create new User Copy", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"example\": \"field\",\n \"other\": {\n \"data1\": \"yes\",\n \"data2\": \"no\"\n }\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": "https://api.io/users", | ||
"description": "Create a new user into your amazing API" | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get list of users", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.io/users?age=45&name=Jhon&review=true&number=23.56", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"users" | ||
], | ||
"query": [ | ||
{ | ||
"key": "age", | ||
"value": "45", | ||
"description": "Filter by age" | ||
}, | ||
{ | ||
"key": "name", | ||
"value": "Jhon", | ||
"description": "Filter by name" | ||
}, | ||
{ | ||
"key": "review", | ||
"value": "true", | ||
"description": "Indicate if should be reviewed or not" | ||
}, | ||
{ | ||
"key": "number", | ||
"value": "23.56", | ||
"description": "This is a number" | ||
} | ||
] | ||
}, | ||
"description": "Obtain a list of users that fullfill the conditions of the filters" | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"auth": { | ||
"type": "basic", | ||
"basic": { | ||
"password": "ssss", | ||
"username": "sss" | ||
} | ||
}, | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"id": "7b3e1a28-e253-4cd9-ac26-2d9d52092d80", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "b50e4ce3-8104-4eb7-bc20-50e6f3f5edab", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
} | ||
], | ||
"protocolProfileBehavior": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"collection": { | ||
"info": { | ||
"_postman_id": "2c1cccde-7a4d-4dea-bcd8-ce39544b0432", | ||
"name": "AuthBasic", | ||
"description": "Collection to test authorization global", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Create new User Copy", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"example\": \"field\",\n \"other\": {\n \"data1\": \"yes\",\n \"data2\": \"no\"\n }\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "https://api.io/users", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"users" | ||
] | ||
}, | ||
"description": "Create a new user into your amazing API" | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get list of users", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.io/users?age=45&name=Jhon&review=true&number=23.56", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"users" | ||
], | ||
"query": [ | ||
{ | ||
"key": "age", | ||
"value": "45", | ||
"description": "Filter by age" | ||
}, | ||
{ | ||
"key": "name", | ||
"value": "Jhon", | ||
"description": "Filter by name" | ||
}, | ||
{ | ||
"key": "review", | ||
"value": "true", | ||
"description": "Indicate if should be reviewed or not" | ||
}, | ||
{ | ||
"key": "number", | ||
"value": "23.56", | ||
"description": "This is a number" | ||
} | ||
] | ||
}, | ||
"description": "Obtain a list of users that fullfill the conditions of the filters" | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"auth": { | ||
"type": "basic", | ||
"basic": [ | ||
{ | ||
"key": "password", | ||
"value": "ssss", | ||
"type": "string" | ||
}, | ||
{ | ||
"key": "username", | ||
"value": "sss", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"id": "631b8a30-dcaf-449a-9f2e-83a9f13044ae", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "b43e5a36-2b9e-47a0-aab9-edc036b968a6", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
} | ||
], | ||
"protocolProfileBehavior": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: AuthBasic | ||
description: Collection to test authorization global | ||
version: 1.0.0 | ||
servers: | ||
- url: https://api.io | ||
components: | ||
securitySchemes: | ||
basicAuth: | ||
type: http | ||
scheme: basic | ||
security: | ||
- basicAuth: [] | ||
paths: | ||
/users: | ||
post: | ||
tags: | ||
- default | ||
summary: Create new User Copy | ||
description: Create a new user into your amazing API | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
example: | ||
example: field | ||
other: | ||
data1: 'yes' | ||
data2: 'no' | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} | ||
get: | ||
tags: | ||
- default | ||
summary: Get list of users | ||
description: Obtain a list of users that fullfill the conditions of the filters | ||
parameters: | ||
- name: age | ||
in: query | ||
schema: | ||
type: integer | ||
description: Filter by age | ||
example: '45' | ||
- name: name | ||
in: query | ||
schema: | ||
type: string | ||
description: Filter by name | ||
example: Jhon | ||
- name: review | ||
in: query | ||
schema: | ||
type: boolean | ||
description: Indicate if should be reviewed or not | ||
example: 'true' | ||
- name: number | ||
in: query | ||
schema: | ||
type: number | ||
description: This is a number | ||
example: '23.56' | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} |