GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - coder4life/Paw-RindexDynamicValue: A Paw Extension to find a random index path based on another request. Also includes specific aliased index lookup.

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
images
images
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Rindex Dynamic Value (Paw Extension)

Introduction

A Paw Extension to find a random index path based on another request. Also includes specific aliased index lookup.

How to Use

Rindex includes simple index tools to load either a specific index {int}, random index {*}, or aliased index {first @f, middle @m, last @l}. The goal is to allow a simplified way to write tests or dependent requests that utilities a wide range of data. Randomizing the data ensures that the request will work for multiple cases derived from the dependent result of the request set.

Ruleset

users[*].name; // random index of users list and name
users[*].friends[*].name; // random index users list; and random index of that user friends list and name
users[@f].name; // first index of users list and name
users[@m].name; // middle index of users list and name
users[@l].name; // last index of users list and name
users[2].name; // third index of users list and name (follows normal array access)

Steps to Use

1. Make a request for dependent data for the NEW Request

2. From EXISTING Request copy a key path (we will change request later)

3. In the NEW Request type the paw dynamic variable.

4. Copy and paste the keypath from the EXISTING to the NEW Request.

5a. Change keypath according to the rules outlined above.

OR

License

See LICENSE.md

About

A Paw Extension to find a random index path based on another request. Also includes specific aliased index lookup.

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.