NAME
Webservice::Swapi - A Perl module to interface with the Star Wars API (swapi.co) webservice.
SYNOPSIS
use Webservice::Swapi;
$swapi = Webservice::Swapi->new;
# Check if API server is up
my $resources = $swapi->ping();
# Get information of all available resources
my $resources = $swapi->resources();
# View the JSON schema for people resource
my $schema = $swapi->schema('people');
# Searching
my $results = $swapi->search('people', 'solo');
# Get resource item
my $item = $swapi->get_object('films', '1');
DESCRIPTION
Webservice::Swapi is a Perl client helper library for the Star Wars API (swapi.co).
DEVELOPMENT
Source repo at https://github.com/kianmeng/webservice-swapi.
Docker
If you have Docker installed, you can build your Docker container for this project.
$ docker build -t webservice-swapi .
$ docker run -it -v $(pwd):/root webservice-swapi bash
Carton
To setup the development environment and run the test using Carton.
$ carton install
$ export PERL5LIB=$(pwd)/local/lib/perl5/
$ export PATH=$HOME/perl5/bin:$(pwd)/local/bin:$PATH
To enable Perl::Critic test cases, enable the flag.
$ TEST_CRITIC=1 carton exec -- prove -Ilib -lv t
Minilla
To use Minilla instead. This will update the README.md file from the source.
$ cpanm Minilla
$ minil build
$ minil test
$ FAKE_RELEASE=1 minil release # testing
$ minil release # actual
COPYRIGHT AND LICENSE
This software is Copyright (c) 2017 by Kian Meng, Ang.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
AUTHOR
Kian-Meng, Ang <kianmeng@users.noreply.github.com>