akrabat / confview-api

Apigility web service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConfView Apigility Web Service

A simple webservice to provide some statistics about an event that is on joind.in

Installation

  • Download the zip file.
  • Install composer and then run composer.phar update

Now, fire it up! Do one of the following:

  • Create a vhost in your web server that points the DocumentRoot to the public/ directory of the project
  • Fire up the built-in web server in PHP (5.4.8+) (note: do not use this for production!)

In the latter case, do the following:

    cd path/to/install
    php -S 0:8080 -t public/ public/index.php

You can then visit the site at http://localhost:8080/

Curl examples:

View list of events:

curl -s -H "Accept: application/vnd.conference.v1+json" http://localhost:8080/conference

Inspect an event:

curl -s -H "Accept: application/vnd.conference.v1+json" "http://localhost:8080/conference/https%253A%252F%252Fapi.joind.in%252Fv2.1%252Fevents%252F1515"

or curl -s -H "Accept: application/vnd.conference.v1+json" "http://localhost:8080/conference/https%253A%252F%252Fapi.joind.in%252Fv2.1%252Fevents%252F1546"

About

Apigility web service

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Puppet 47.3%Language:Ruby 38.6%Language:Shell 6.3%Language:Perl 5.3%Language:PHP 2.5%