free-elephants/json-api-toolkit

Tools for building specification first json:api / swagger integrated APIs

0.0.10 2020-07-19 10:15 UTC

This package is auto-updated.

Last update: 2020-07-19 10:16:37 UTC


README

Build Status codecov Installs Releases

Features:

  • Build FastRoute Dispatcher by defined in OAS3 operationsIds values
  • Serialize Doctrine entities with Neomerx schemas (resolve issue https://github.com/neomerx/json-api/issues/40)
  • Generate PHP Data Transfer Objects by OAS3 reponseBody and requestBody schema reference compliance with json:api
  • Map Psr Requests to Data Transfer Objects
  • Validate incoming Psr Requests with swagger specification and user defined rules, and build Psr Response with json:api errors
  • Map application models to Psr Response compliance with json:api structure

Usage

Install

composer require free-elephants/json-api-toolkit

Documentation

Available in /docs.

Index:

  1. Routing
  2. Serialize doctrine entities
  3. DTO from psr server request
  4. Validation