Releases: tomaj/nette-api
Releases · tomaj/nette-api
2.1.0
Changed
- Rewritten ApiPresenter
Added
- Added API rate limit
- Added custom headers to API console
- Added field for timeout to API console
- OpenAPI handler
- Information about RESTful urls
Fixed
- Fixed sending empty string in multi params
- UrlEncoding values sending through get param inputs
- Fixed static url part
/api/
in console - Fixed generating urls in console for RESTful urls using ApiLink and EndpointInterface
2.0.0
Changed
- Updated nette libs to version 3.0.0 (BC break)
- Added typehints (BC break)
- Splitted InputParam to multiple subclasses (BC break)
- Removed type TYPE_POST_JSON_KEY (BC break)
- Wrong input now returns code 400 instead of 500 (BC break if somebody checks return code)
- Replaced handler information array triplet (endpoint, handler, authorization) with class Api (BC break for API console usage)
- Renamed some methods from ApiDecider (BC break)
- Pretty JSON output in API console - without escaping unicode and slashes
Added
- Added type JsonInputParam with scheme as replacement for type TYPE_POST_JSON_KEY
- Detailed error for wrong input if debugger is enabled
- Added summary (short description), description, tags and deprecated flag for API handlers
- Added description, default value and example for input params
- Added output validator
Removed
- Removed support for PHP 5.6, 7.0 and hhvm (BC Break)
- Removed deprecated class ApiResponse (BC Break)
Custom OPTIONS handler
- ability to set custom handlers for OPTIONS request
Added X-Requested-With to Cors handler
- Added X-Requested-With to Cors handler
Added possibility to send empty fields via console request
- Added possibility to send empty fields via console request