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 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #8
- Loading branch information
Showing
5 changed files
with
201 additions
and
7 deletions.
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
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 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "c2a620d9-979e-4f39-b6bc-22282ce4b21a", | ||
"name": "Large Path Params", | ||
"description": "Collection to test path parameters", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Get one users info", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.io/dev/users/{{user_id}}", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"dev", | ||
"users", | ||
"{{user_id}}" | ||
] | ||
}, | ||
"description": "Obtain a list of users that fullfill the conditions of the filters" | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get descriptions of a user", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.io/dev/user/{{user_id}}/desc/", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"dev", | ||
"user", | ||
"{{user_id}}", | ||
"desc", | ||
"" | ||
] | ||
}, | ||
"description": "Obtain a list of users descriptions\n\n# postman-to-openapi\n\n| object | name | description | required | type | example |\n|--------|----------|--------------------------------|----------|--------|-----------|\n| path | user_id | This is just a user identifier | true | number | 476587598 |" | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Get a description from an user", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.io/dev/user/{{user_id}}/desc/{{desc_id}}", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"dev", | ||
"user", | ||
"{{user_id}}", | ||
"desc", | ||
"{{desc_id}}" | ||
] | ||
}, | ||
"description": "Obtain a list of users descriptions\n\n# postman-to-openapi\n\n| object | name | description | required | type | example |\n|--------|----------|--------------------------------|----------|--------|-----------|\n| path | user_id | This is just a user identifier | true | number | 476587598 |\n| path | desc_id | Description id | true | string | ALMT |" | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"id": "3d4c9432-87d0-46d1-8e0a-7bf78b95838f", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "bfa95668-f3ba-423f-93d3-152fbba765af", | ||
"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,70 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Large Path Params | ||
description: Collection to test path parameters | ||
version: 1.0.0 | ||
servers: | ||
- url: 'https://api.io' | ||
paths: | ||
'/users/{user_id}': | ||
get: | ||
tags: | ||
- default | ||
summary: Get one users info | ||
description: Obtain a list of users that fullfill the conditions of the filters | ||
parameters: | ||
- name: user_id | ||
in: path | ||
schema: | ||
type: string | ||
required: true | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} | ||
'/user/{user_id}/desc/': | ||
get: | ||
tags: | ||
- default | ||
summary: Get descriptions of a user | ||
description: Obtain a list of users descriptions | ||
parameters: | ||
- name: user_id | ||
in: path | ||
schema: | ||
type: number | ||
required: true | ||
description: This is just a user identifier | ||
example: '476587598' | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} | ||
'/user/{user_id}/desc/{desc_id}': | ||
get: | ||
tags: | ||
- default | ||
summary: Get a description from an user | ||
description: Obtain a list of users descriptions | ||
parameters: | ||
- name: user_id | ||
in: path | ||
schema: | ||
type: number | ||
required: true | ||
description: This is just a user identifier | ||
example: '476587598' | ||
- name: desc_id | ||
in: path | ||
schema: | ||
type: string | ||
required: true | ||
description: Description id | ||
example: ALMT | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} |