PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
  Classes of Rodolfo Pereira Romano  >  PHP API Server Builder  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP API Server Builder
Build a REST server API from custom classes
Author: By
Last change: Update of readme.txt
Date: 7 months ago
Size: 1,446 bytes
 

Contents

Class file image Download
APIBuilder - PHP REST API Builder
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This framework make easy the developmente of an REST Api for others developers can acsses information on your system.

Este framework torna fácil o desenvolvimento de uma REST API para que outros desenvolvedores podssam acessar informações de seus sistema.

This package can build a REST server API from custom classes.

It can register classes that will handle API calls under given server URI.

The main class can handle the requests to the API server and call the respective handler classes.

Optionally a custom class can validate the key value that clients may be required to pass as authorized clients to access the API.

Ajuda/HELP
~~~~~~~~~~

Any Help is welcome!

Toda Ajuda é bem vinda!

O que é REST API (REpresentational State Transfer (REST)) ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sobre REST http://pt.wikipedia.org/wiki/REST



Primerios Passos / First Steps
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

- includes:
	include('apibuilder/core/ApiApp.php');		
	include('apibuilder/language/pt-br.php');
	include('apibuilder/formats/all_formats.php');
	
- Criar uma classe que extende de ApiCommandBase
	- Implementar _getURIName()
	- Implmentar os métodos públicos que estarão disponíveis para o usuário
	
- Registrar a nova classe usando: registerClass()

- Instanciar APIApp
	- Parametrizar
	- executar run()