This commit is contained in:
Liyas Thomas
2019-10-30 07:56:01 +05:30
4 changed files with 20 additions and 10 deletions

View File

@@ -45,12 +45,12 @@ When I wrote this, only God and I understood what I was doing. Now, only God kno
**Methods:** **Methods:**
- `GET` - Retrieve information about the REST API resource - `GET` - Retrieve information about the REST API resource
- `HEAD` - Asks for a response identical to that of a GET request, but without the response body. - `HEAD` - Retrieve response headers identical to those of a GET request, but without the response body.
- `POST` - Create a REST API resource - `POST` - Create a REST API resource
- `PUT` - Update a REST API resource - `PUT` - Update a REST API resource
- `DELETE` - Delete a REST API resource or related component - `DELETE` - Delete a REST API resource or related component
- `OPTIONS` - Describe the communication options for the target resource - `OPTIONS` - Describe the communication options for the target resource
- `PATCH` - Applies partial modifications to a REST API resource - `PATCH` - Apply partial modifications to a REST API resource
_History entries are synced with local session storage_ _History entries are synced with local session storage_
@@ -119,7 +119,7 @@ _HTML responses have "Preview HTML" feature_
**History**: Request entries are synced with local session storage to reuse with a single click. **History**: Request entries are synced with local session storage to reuse with a single click.
**Field:s** **Fields:**
- Label - Label
- Timestamp - Timestamp
- Method - Method
@@ -293,9 +293,9 @@ Support this project with your organization. Your logo will show up here with a
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details. This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
## Acknowledgments 🙏 ## Acknowledgements 🙏
* Hat tip to anyone who's code was used * Hat tip to anyone whose code was used
* Inspirations: * Inspirations:
* [Dribbble](https://dribbble.com) * [Dribbble](https://dribbble.com)

View File

@@ -1381,9 +1381,9 @@ export default {
"url", "url",
"path", "path",
!this.urlExcludes.auth ? "auth" : null, !this.urlExcludes.auth ? "auth" : null,
"httpUser", !this.urlExcludes.httpUser ? "httpUser" : null,
"httpPassword", !this.urlExcludes.httpPassword ? "httpPassword" : null,
"bearerToken", !this.urlExcludes.bearerToken ? "bearerToken" : null,
"contentType" "contentType"
].filter((item) => item !== null).map(item => flat(item)); ].filter((item) => item !== null).map(item => flat(item));
let deeps = ["headers", "params"].map(item => deep(item)); let deeps = ["headers", "params"].map(item => deep(item));
@@ -1531,8 +1531,15 @@ export default {
this.editRequest = {}; this.editRequest = {};
}, },
setExclude (excludedField, excluded) { setExclude (excludedField, excluded) {
if (excludedField === "auth") {
this.urlExcludes.auth = excluded;
this.urlExcludes.httpUser = excluded;
this.urlExcludes.httpPassword = excluded;
this.urlExcludes.bearerToken = excluded;
} else {
this.urlExcludes[excludedField] = excluded; this.urlExcludes[excludedField] = excluded;
this.setRouteQueryState(); }
this.setRouteQueryState();
}, },
methodChange() { methodChange() {
// this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' }) // this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' })
@@ -1545,7 +1552,10 @@ export default {
created() { created() {
this.urlExcludes = this.$store.state.postwoman.settings.URL_EXCLUDES || { this.urlExcludes = this.$store.state.postwoman.settings.URL_EXCLUDES || {
// Exclude authentication by default for security reasons. // Exclude authentication by default for security reasons.
auth: true auth: true,
httpUser: true,
httpPassword: true,
bearerToken: true
}; };
if (Object.keys(this.$route.query).length) if (Object.keys(this.$route.query).length)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 68 KiB