Skip to content

Releases: tomaj/nette-api

1.6.1

05 Jul 19:40
Compare
Choose a tag to compare
  • Fixed Nette 2.4 compatibility
  • 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"

1.6.0

11 May 11:42
Compare
Choose a tag to compare
  • Added Content-Length header to Json and Xml responses

1.5.0

04 May 10:25
Compare
Choose a tag to compare
  • 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

1.4.0

03 Apr 09:27
Compare
Choose a tag to compare
  • changed rendering in API console when available values are set
  • fixed negative values for response time in API web console

Error reporting with Tracy

17 Feb 06:02
Compare
Choose a tag to compare
  • added tracy for error logging from ApiPresenter
  • added tests for ApiPresenter

New Input Types

11 Feb 14:19
Compare
Choose a tag to compare

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

15 Jan 14:30
Compare
Choose a tag to compare
  • 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 array parsing

07 Jan 09:46
Compare
Choose a tag to compare

Fixed parsing array variables from GET and POST when using multi InputParam

First stable version

06 Jan 20:51
Compare
Choose a tag to compare

First version that can be used for api. Contains

  1. Authorization
  2. Handling api request
  3. Logging
  4. UI Control for api listing
  5. UI Control for web console to test api endpoints
  6. Api versioning