Skip to content

A template tag for generating unique, formatted request IDs in Insomnia

License

Notifications You must be signed in to change notification settings

TheComputeGuy/reqid-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

<App Nickname>-<Environment>-<Unix epoch time>

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

The final file structure after import will be

<OS-specific base>/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

About

A template tag for generating unique, formatted request IDs in Insomnia

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published