GithubHelp home page GithubHelp logo

rick-and-morty-cli's Introduction

Rick And Morty

๐Ÿ‘€ CLI

A command line interface using Clap

๐Ÿ›ฃ๏ธ Features

  • Characters (Get all (with filters), Get by id, Get by multiple ids)
  • Episodes (Get all (with filters), Get by id, Get by multiple ids)
  • Locations (Get all (with filters), Get by id, Get by multiple ids)
  • Proxy Server - Spin up API server using Actix Web

Characters

1) Help

$ cargo run characters -h
Get all or a single character

Usage: rick_and_morty_cli characters <COMMAND>

Commands:
  get-all       Get all
  get           Get by id
  get-multiple  Get multiple by ids
  help          Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help information

1) Get all

$ cargo run characters get-all -h 
Get all

Usage: rick_and_morty_cli characters get-all [OPTIONS]

Options:
  -p, --page <PAGE>      Optional: Page number
  -s, --status <STATUS>  Optional: Filter by the given status - Values (alive, dead or unknown)
  -g, --gender <GENDER>  Optional: Filter by the given gender  - Values (female, male, genderless or unknown)
  -h, --help             Print help information

2) Get by Id

$ cargo run characters get -h 
Get by id

Usage: rick_and_morty_cli characters get --id <ID>

Options:
  -i, --id <ID>  ID
  -h, --help     Print help information

3) Get Multiple ids

$ cargo run characters get-multiple -h 
Get multiple by ids

Usage: rick_and_morty_cli characters get-multiple [OPTIONS]

Options:
  -i, --ids <IDS>  ID - Example 1,2,3
  -h, --help       Print help information

Episodes

1) Help

$ cargo run episodes -h
Get all or a single episode

Usage: rick_and_morty_cli episodes <COMMAND>

Commands:
  get-all       Get all
  get           Get by id
  get-multiple  Get multiple by ids
  help          Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help information

1) Get all

$ cargo run episodes get-all -h 
Get all

Usage: rick_and_morty_cli episodes get-all [OPTIONS]

Options:
  -p, --page <PAGE>        Optional: Page number
  -n, --name <NAME>        Optional: Filter by the given name
  -e, --episode <EPISODE>  Optional: Filter by the given episode code
  -h, --help               Print help information

2) Get by Id

$ cargo run episodes get -h 
Get by id

Usage: rick_and_morty_cli episodes get --id <ID>

Options:
  -i, --id <ID>  ID
  -h, --help     Print help information

3) Get Multiple ids

$ cargo run episodes get-multiple -h 
Get multiple by ids

Usage: rick_and_morty_cli episodes get-multiple [OPTIONS]

Options:
  -i, --ids <IDS>  ID - Example 1,2,3
  -h, --help       Print help information

Locations

1) Help

$ cargo run locations -h
Get all or a single location

Usage: rick_and_morty_cli locations <COMMAND>

Commands:
  get-all       Get all
  get           Get by id
  get-multiple  Get multiple by ids
  help          Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help information

1) Get all

$ cargo run episodes get-all -h 
Get all

Usage: rick_and_morty_cli locations get-all [OPTIONS]

Options:
  -p, --page <PAGE>            Optional: Page number
  -n, --name <NAME>            Optional: Filter by the given name
  -d, --dimension <DIMENSION>  Optional: Filter by the given dimension
  -h, --help                   Print help information

2) Get by Id

$ cargo run locations get -h 
Get by id

Usage: rick_and_morty_cli locations get --id <ID>

Options:
  -i, --id <ID>  ID
  -h, --help     Print help information

3) Get Multiple ids

$ cargo run locations get-multiple -h 
Get multiple by ids

Usage: rick_and_morty_cli locations get-multiple [OPTIONS]

Options:
  -i, --ids <IDS>  ID - Example 1,2,3
  -h, --help       Print help information

Proxy

$ cargo run proxy spin-up 

Postman Collection inside of ./doc

rick-and-morty-cli's People

Contributors

estebancanela avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.