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 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support Get with query params #17
Basic support in this moment
- Loading branch information
Showing
5 changed files
with
147 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "2c1cccde-7a4d-4dea-bcd8-ce39544b0432", | ||
"name": "Get Methods", | ||
"description": "API to manage GET methods", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Get list of users", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://api.io/users?age=45&name=Jhon&review=true", | ||
"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" | ||
} | ||
] | ||
}, | ||
"description": "Obtain a list of users that fullfill the conditions of the filters" | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"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": {} | ||
} |
File renamed without changes.
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,33 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Get Methods | ||
description: API to manage GET methods | ||
version: 1.0.0 | ||
paths: | ||
/users: | ||
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: string | ||
description: Filter by age | ||
- name: name | ||
in: query | ||
schema: | ||
type: string | ||
description: Filter by name | ||
- name: review | ||
in: query | ||
schema: | ||
type: string | ||
description: Indicate if should be reviewed or not | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} |