2017 © Pedro Peláez
 

library rest-api

MediaMonks Rest API

image

mediamonks/rest-api

MediaMonks Rest API

  • Saturday, June 2, 2018
  • by mediamonks
  • Repository
  • 5 Watchers
  • 5 Stars
  • 8,508 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

Build Status Code Coverage Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

MediaMonks Rest API

This library contains an event subscriber to easily create a Rest API with the Symfony HttpKernel. By default this library will output according to our MediaMonks Rest API spec but since we believe it could be very useful for other companies too it's very easy to extend it or implement your own., (*2)

Highlights

  • Thrown exceptions will be converted automatically
  • Supports custom serializers like JMS, uses json serializer by default
  • Supports custom response models
  • Supports application/json, application/x-www-form-urlencoded & multipart/form-data input
  • Supports method overriding
  • Supports forcing a "200 OK" status method
  • Supports paginated responses
  • Supports wrapping json response in a method (jsonp) and post message
  • Should work with any framework that uses HttpKernel

Documentation

Documentation and examples can be found in the /docs folder., (*3)

Requirements

  • PHP >= 8.0

To use the library., (*4)

Installation

For Symfony Framework users it is recommended to install the Rest API Bundle instead of this library., (*5)

Install this package by using Composer., (*6)

$ composer require mediamonks/rest-api

Security

If you discover any security related issues, please email devmonk@mediamonks.com instead of using the issue tracker., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions