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.
feat: adding x-www-form-urlencoded support
feat: form data encoding support refactor: form data accumulator functions move to named functions
- Loading branch information
1 parent
8a26c69
commit 8311563
Showing
8 changed files
with
226 additions
and
31 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,41 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "1eaa74c4-2d76-45f0-bd34-bff5d96f0ba8", | ||
"name": "Form Data", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Register New User", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "urlencoded", | ||
"urlencoded": [ | ||
{ | ||
"key": "name", | ||
"value": "New User", | ||
"description": "full name of the user (accepts spaces) [required]", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "email", | ||
"value": "newuser@example.com", | ||
"description": "email of the user (for notifications and login) [required]", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "password", | ||
"value": "pasword123", | ||
"description": "password (to be used for logging in) [required]", | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"url": "https://api.io/register" | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
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,51 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "1eaa74c4-2d76-45f0-bd34-bff5d96f0ba8", | ||
"name": "Form Data", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Register New User", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "urlencoded", | ||
"urlencoded": [ | ||
{ | ||
"key": "name", | ||
"value": "New User", | ||
"description": "full name of the user (accepts spaces) [required]", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "email", | ||
"value": "newuser@example.com", | ||
"description": "email of the user (for notifications and login) [required]", | ||
"type": "text" | ||
}, | ||
{ | ||
"key": "password", | ||
"value": "pasword123", | ||
"description": "password (to be used for logging in) [required]", | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"url": { | ||
"raw": "https://api.io/register", | ||
"protocol": "https", | ||
"host": [ | ||
"api", | ||
"io" | ||
], | ||
"path": [ | ||
"register" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |
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,37 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Form Data | ||
version: 1.0.0 | ||
servers: | ||
- url: https://api.io | ||
paths: | ||
/register: | ||
post: | ||
tags: | ||
- default | ||
summary: Register New User | ||
requestBody: | ||
content: | ||
application/x-www-form-urlencoded: | ||
schema: | ||
properties: | ||
name: | ||
type: string | ||
description: full name of the user (accepts spaces) [required] | ||
example: New User | ||
require: true | ||
email: | ||
type: string | ||
description: email of the user (for notifications and login) [required] | ||
example: newuser@example.com | ||
require: true | ||
password: | ||
type: string | ||
description: password (to be used for logging in) [required] | ||
example: pasword123 | ||
require: true | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} |