Skip to content

Releases: tomaj/nette-api

2.1.0

13 May 12:19
Compare
Choose a tag to compare

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

12 Jun 14:22
Compare
Choose a tag to compare

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

12 May 06:40
Compare
Choose a tag to compare
  • ability to set custom handlers for OPTIONS request

Added X-Requested-With to Cors handler

12 May 06:41
Compare
Choose a tag to compare
  • Added X-Requested-With to Cors handler

Added possibility to send empty fields via console request

12 May 06:40
Compare
Choose a tag to compare
  • Added possibility to send empty fields via console request

1.9.0

08 Nov 15:59
Compare
Choose a tag to compare
  • PUT type for InputType

1.8.1

08 Nov 15:59
Compare
Choose a tag to compare
  • Updated league/fractal library to 0.14.0

1.8.0

28 Sep 05:54
Compare
Choose a tag to compare
  • Added cors headers - Access-Control-Allow-Headers and Access-Control-Allow-Methods

1.7.0

13 Sep 13:22
Compare
Choose a tag to compare
  • Added cors preflight headers for javascript requests

1.6.2

22 Jul 07:25
Compare
Choose a tag to compare
  • InputParam validation of multi params, if available values are defined