Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

emslade/interactive-service-description

Repository files navigation

Installation

  • Run composer.phar install
  • Add vhost to point to public directory
  • Run ./bin/console generate:html /path/to/service.json public

Add configuration

// config/config.php
return array(
    'roles' => array(
        'role' => array(
            'base_url' => 'http://api.example.com',
            'consumer_key' => 'consumer_key',
            'consumer_secret' => 'consumer_secret',
            'token' => 'token',
            'token_secret' => 'token_secret',
        ),
    ),
    'serviceDescriptionPath' => '/path/to/service/description.json',
    'defaultRole' => 'role',
);

Contributing

Service Docs uses Sass, specifically the SCSS (Sassy CSS) syntax. If you wish to write CSS you’ll first need to install Sass.

With Sass installed, run sass --cache-location cache/ --style compressed --watch public/stylesheets/application.scss:public/css/application.css to have Sass watch the application file and update the CSS whenever it changes.

Credits

Icons by Jason Tropp, Stephen Boak, and Eric Miller all from the Noun Project.

About

Generates documentation from Guzzle service description

Resources

Stars

Watchers

Forks

Packages

No packages published