Giter VIP home page Giter VIP logo

rollnapi's Introduction

Roll'n API

This repository is a companion to a talk Roll'n API by Tom Anderson.

Entity Relationship Diagram

The Skipper diagram is recommend: rollnapi.skipper

If you do not have Skipper see the PDF: https://github.com/TomHAnderson/RollnApi/blob/master/media/rollnapi.pdf

Doctrine OAuth2 API with Apigility

This is written for PHP 5.3 but these instructions assume 5.4 or greater.

git clone [email protected]:TomHAnderson/RollnApi
cd RollnApi
cp config/autoload/local.php.dist config/autoload/local.php
Uncomment this section of local.php for a root API user:
    /*
   'data-fixture' => array(
       'RollNApi_Root_fixture' => __DIR__ . '/../src/RollNApi/Fixture/Root',
   ),
   */
./composer.phar install
php public/index.php orm:schema-tool:create
php public/index.php data-fixture:import
php -S localhost:8083 -t public/ public/index.php

See the API Testing instructions for use.

Features

A default Query Provider is used for UserAlbum so a user can only fetch or update their own UserAlbum.

A FetchAll Query Provider for UserAlbum is used so filters may be applied to a GET request. See https://github.com/zfcampus/zf-doctrine-querybuilder for details.

A Query Create Filter is used for UserAlbum so the authenticated user is assigned to any new UserAlbum.

A Hydrator Filter is used for UserAlbum so the assigned user entity is not included in results.

A Hydrator Strategy is used for the many to many relationship of Performer to Album.

rollnapi's People

Contributors

weierophinney avatar tomhanderson avatar ralphschindler avatar ezimuel avatar rockstar04 avatar intellix avatar samsonasik avatar dcsg avatar roheim avatar endijs avatar evandotpro avatar m19c avatar thadafinser avatar tylkomat avatar kevin-olbrich avatar wdjer avatar

Watchers

James Cloos avatar Simon M. Waldburger 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.