Skip to content

Add support for --verbose #10

@blad

Description

@blad

Reduce the amount of standard output to just:

Request Recieved: /api/people/1/ GET Learning

and

Request Recieved: /api/people/1/ GET Repeating

Set the --verbose output to something like:

Request Recieved: /api/people/2/ GET
Learning::  {"url":"http://swapi.co/api/people/2/","body":"","headers":{},"method":"GET"}
Successfully Created Directory: /var/fixtures/api/people/2

Responding:  200 application/json

content-type: application/json
cookie: user=123;name=helloworld
date: 2015-12-13 12:00:00

{"name":"C-3PO","height":"167","mass":"75","hair_color":"n/a","skin_color":"gold","eye_color":"yellow","birth_year":"112BBY","gender":"n/a","homeworld":"http://swapi.co/api/planets/1/","films":["http://swapi.co/api/films/5/","http://swapi.co/api/films/4/","http://swapi.co/api/films/6/","http://swapi.co/api/films/3/","http://swapi.co/api/films/2/","http://swapi.co/api/films/1/"],"species":["http://swapi.co/api/species/2/"],"vehicles":[],"starships":[],"created":"2014-12-10T15:10:51.357000Z","edited":"2014-12-20T21:17:50.309000Z","url":"http://swapi.co/api/people/2/"}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions