2017 © Pedro Peláez
 

typo3-flow-framework api

TYPO3 Flow package for creating api

image

perfectin/api

TYPO3 Flow package for creating api

  • Wednesday, February 10, 2016
  • by benovie
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PerfectIn.Api

is a TYPO3.Flow package to create api's for existing code, (*1)

Example routing

Find all TYPO3\Flow\Security\Role with REST

Routes.yaml:, (*2)

-
  name: 'Rest route for Roles'
  uriPattern: role
  httpMethods:
    - GET
  defaults:
    '@package': PerfectIn.Api
    '@controller': Rest
    '@action': handle
    class: TYPO3\Flow\Security\Policy\PolicyService
    method: getRoles

Find one TYPO3\Flow\Security\Role with REST

Note that the variable {roleIdentifier} in the url is automatically mapped to the $roleIdentifier parameter in the getRole method, (*3)

Routes.yaml:, (*4)

-
  name: 'Rest route for Role'
  uriPattern: 'role/{roleIdentifier}'
  httpMethods:
    - GET
  defaults:
    '@package': PerfectIn.Api
    '@controller': Rest
    '@action': handle
    class: TYPO3\Flow\Security\Policy\PolicyService
    method: getRole

The Versions

10/02 2016

dev-master

9999999-dev

TYPO3 Flow package for creating api

  Sources   Download

LGPL-3.0+

The Requires

 

10/02 2016

1.0

1.0.0.0

TYPO3 Flow package for creating api

  Sources   Download

LGPL-3.0+

The Requires