All notable changes to this project will be documented in this file. Updates should follow the Keep a CHANGELOG principles.
- Added possibility to send current PHPSESSID via API Web Console
- Added X-Requested-With header to Cors handler
- Added possibility to send empty fields via console request
- Added support for PUT fields
- Updated league/fractal library to 0.14.0
- Added cors headers - Access-Control-Allow-Headers and Access-Control-Allow-Methods
- Added default CORS preflight handler
- Added possibility to enable global preflight handler for all handlers with
enableGlobalPreflight()
onApiDecider
- InputParam validation of multi params, if available values are defined
- End of support for php < 5.6
- Service of type Tomaj\NetteApi\Misc\IpDetectorInterface is no more required if service of type Tomaj\NetteApi\Logger\ApiLoggerInterface is not configured and used
- Service of type Tomaj\NetteApi\Logger\ApiLoggerInterface need not be named "apiLogger"
- Added Content-Length header to Json and Xml responses
- ApiPresenter: getRequestDomain() returns port as well
- Updated JsonApiResponse - separate charset from content type as changed in nette/application 2.3.12
- Also change nette/application minimal version to 2.3.12
- changed rendering in API console when available values are set
- fixed negative values for response time in API web console
- added tracy for error logging from ApiPresenter
- added tests for ApiPresenter
- New ability to send new input types:
- send RAW POST data
- send COOKIES
- send FILEs
- (more info in readme section Inputs)
- all new types are available in test console for easy testing api calls
- Added CORS support to ApiPresenter. Available options:
- 'auto' - send back header Access-Control-Allow-Origin with domain that made request
- '' - send header with '' - this will work fine if you dont need to send cookies via ajax calls to api with jquery $.ajax with xhrFields: { withCredentials: true } settings
- 'off' - will not send any CORS header
- other - any other value will be send in Access-Control-Allow-Origin header
- Rewritten few internal functions
- Fixed parsing array variables from GET and POST when using multi InputParam
First version that can be used for api. Contains
- Authorization
- Handling api request
- Logging
- UI Control for api listing
- UI Control for web console to test api endpoints
- Api versioning