Skip to content

braulioaguilar/public-api-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Public API CLI

Simple CLI to use Public API for Public APIs.

More info about parameters here.

Endpoints

  • /categories: List all categories
  • /entries: List all entries currently cataloged in the project
  • /random: List a single entry selected at random

Test code

$ go run cmd/*.go <endpoint> <filter> 

## Example
$ go run cmd/*.go entries --filter cors=yes,https=true

Generate binary

$ make build

Usage binary

$ ./bin/publicapi entries --filter cors=no