Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecomputeguy/reqid-generator
A template tag for generating unique, formatted request IDs in Insomnia
https://github.com/thecomputeguy/reqid-generator
insomnia insomnia-plugin insomnia-rest
Last synced: about 2 months ago
JSON representation
A template tag for generating unique, formatted request IDs in Insomnia
- Host: GitHub
- URL: https://github.com/thecomputeguy/reqid-generator
- Owner: TheComputeGuy
- License: mit
- Created: 2022-02-25T14:09:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-25T14:40:41.000Z (almost 3 years ago)
- Last Synced: 2023-07-30T07:40:23.746Z (over 1 year ago)
- Topics: insomnia, insomnia-plugin, insomnia-rest
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Request ID Generator
Request ID generator is an Insomnia plugin that adds a template tag for generating unique formatted request IDs to your requests
## Parameters
The following parameters are optional and allow formatting of the generated request ID
#### App Nickname
The nickname of the app under test.
Type: *String*
#### Environment
The environment where the app is being tested (e.g. - staging, PRD, etc.)
Type: *String*## Details
For making each request ID unique, the current Unix epoch time is appended to the string returned. Thus, the format of the generated request ID will be:
```
--
```
In absence of one or more parameters, the corresponding entry in the request ID will be skipped.## Usage
The plugin is not currently available as an NPM package and thus needs to be manually imported into the local plugins folder for Insomnia. Details are available [here](https://docs.insomnia.rest/insomnia/introduction-to-plugins/#plugin-file-location)The final file structure after import will be
```
/insomnia-plugin-reqid-generator
├── package.json
├── main.js
├── LICENSE
└── README.md
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
This plugin is distributed under the permissive [MIT License](https://choosealicense.com/licenses/mit/)