Skip to content

RandomAPI/Offline-RandomAPI

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RandomAPI (OfflineAPI)

This cli-tool requires a premium plan on RandomAPI

Please visit https://randomapi.com to register

Detailed tutorial: http://blog.randomapi.com/offline-randomapi/

How to use:

  1. Create a new authToken at https://randomapi.com/settings/offline#new
  2. Login with your username and authToken to link this machine to your account.
  3. Run the sync operation to synchronize your APIs, lists, and snippets with the RandomAPI server.
  4. Run the ls command to view locally available APIs
  5. Generate results using the gen command or visit http://localhost:61337 to generate results via browser
    • options must be provided as a comma delimited list in CLI (e.g. results=25,fmt=csv,seed=a)

Usage: randomapi [command]

Commands:
   config [property] [new value]     View saved settings
   gen [list # OR ref #] [options]   Generate result for given API
   list                              Alias for ls
   ls                                View available local APIs
   login                             Login and link your machine with your RandomAPI account using an authToken
   logout                            Logout off your RandomAPI account
   restart                           Restart OfflineAPI Server
   run [list # OR ref #] [options]   Alias for gen
   start                             Start OfflineAPI Server
   status                            View status of OfflineAPI Server
   stop                              Stop OfflineAPI Server
   sync                              Synchronize your local APIs with the RandomAPI server
   verify                            Verify your login authToken is valid

About

Offline RandomAPI npm module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published