Skip to content

Releases: contributte/apitte-core

v0.8.1

12 Sep 18:21
Compare
Choose a tag to compare

Bumped! 🎽

Diff: v0.8.0...v0.8.1

Changes:

v0.8.0

07 Sep 14:35
0a2f43c
Compare
Choose a tag to compare

Bumped! 🚉

Diff: v0.7.1...v0.8.0

Changes:


Migration:

  • RequestParameter - required parameter in
- @RequestParameter(name="id", type="int", description="User ID")
+ @RequestParameter(name="id", in="path", type="int", description="User ID")

v0.7.1

26 Aug 20:17
ad6005e
Compare
Choose a tag to compare

Bumped! 🧙‍♀️

Diff: v0.7.0...v0.7.1

Changes:

  • Relax nette/utils version
  • Upgrade deps

v0.7.0

26 Aug 20:17
Compare
Choose a tag to compare

Bumped! 👩🏼‍⚕️

Diff: v0.6.0...v0.7.0

Changes:

  • Docs update @mabar
  • Added endpoint sorting @mabar
  • Fixed PsrLogErrorHandler registration @mabar
  • Renamed Request -> RequestBody @mabar
  • Added default exception to response conversion @mabar
  • Limited only error codes from ApiException as response codes @mabar
  • Required nette/utils @mabar
  • Trimmed annotations e.g. ControllerPath -> Path and GroupPath -> Path @TonyVlcek
  • Trimmed annotations e.g. ControllerId -> Id and GroupId -> Id @TonyVlcek
  • Droped unused or deprecated code @mabar
  • Added tests @mabar @f3l1x
  • Internal refactoring @mabar
  • Open for php8 @Roman3349
  • QA @Roman3349 @Vlczech @f3l1x
  • Fixed typos @Rixafy
  • Better message for missing mask parameter @khorsky
  • Travis to github actions @vody105
  • Changed ApiRequest default value behaviour (possible BC break) @f3l1x

v0.6.0

26 Aug 20:17
Compare
Choose a tag to compare

Diff: v0.5...v0.6.0

Changes:

v0.5

26 Aug 20:16
Compare
Choose a tag to compare

Diff: v0.4...v0.5

New:

  • rewrited documentation
  • Apitte is now wrapped into own Application class which must be used for proper functioning (see documentation)
  • error handler
    • transforms all thrown errors into response
      • could be disabled by option catchException: false in debug mode
      • apitte/negotiation is used for error transformation instead, if installed
    • if an PSR-3 compatible logger (like Monolog) is register in DIC then all errors except our special ApiException and it's descendants (ServerErrorException, ClientErrorException, ...) are logged with error severity
      • also previous errors from ApiException ($exception->withPrevious($anotherException)) are logged
  • ClientErrorException and ServerErrorException have default error message contributte/apitte@866418d
  • new Request, Response and OpenApi annotations (used by apitte/openapi) contributte/apitte@31d7008
  • ApiResponse contain constants with all HTTP response codes contributte/apitte@342311b
  • request parameters with type int and float accept numbers prefixed with + contributte/apitte@969f9d5
  • apitte/playground merged with planette/playground

Changes:

Removals:

Fixes:

v0.4

26 Aug 20:16
Compare
Choose a tag to compare

Bump! 🎉

Diff: v0.3...v0.4

Changes:

  • Strict types and native typehints (#18)
  • phpstan 0.10
  • rewrited exceptions - more consistent and meaningful
  • normalized behavior for tags - all tags could have an optional value (#27)
  • router throws 405 instead of 404 for methods which are unsupported by endpoint (#54)
  • removed BadRequestException and RequestException (api should use ClientErrorException and ServerErrorException only) (#60)
  • fully implemented request parameters (#44, #40, #52)
    • check format of variable instead of magical typecasting
    • implemented datetime and boolean
    • removed scalar (use string instead) and object (not implemented)
    • removed support for custom types (in consistence with openapi - only object type may be returned in future)
  • validations
    • each request parameter in path must be defined in mask and each mask parameter must be defined in request parameters
    • check validity of request parameter attributes and validity of combination of these attributes
    • allow only one default suffix for response mappers and require all suffixes to be unique
    • check validity of negotiations (#28)
  • optimizations
    • check renderers, request and response entities validity in compile-time
  • fixes
    • fix case where non-last decorator returned null
    • Method::addArguments - arguments order (affects only very low-level usage)

v0.3

26 Aug 20:16
v0.3
607dc55
Compare
Choose a tag to compare

Bump! 🎃

Diff: v0.2...v0.3

Changes:

  • Mapping: normalize request parameter with respect to parameter IN [#14] (thanks @trejjam)
  • Openapi: extend configuration [#17] (thanks @trejjam)
  • Fix bug with required non-empty parameter [#15] (thanks @trejjam)

This is last PHP 5.6 release.

v0.2

26 Aug 20:15
v0.2
568bdc4
Compare
Choose a tag to compare

Bump! 🇫🇰

Diff: v0.1.1...v0.2

Changes:

  • added RequestMapper/ResponseMapper + validation
  • better ArraySerializator
  • added frequently used method to Endpoint
  • simplify events in Dispatcher
  • pass query parameters into attributes
  • validate only fullpath (GroupPath+ControllerPath+Path)
  • better exception [#13]

v0.1.1

26 Aug 20:15
Compare
Choose a tag to compare

Bump! ⛵

Diff: v0.1...v0.1.1

Changes:

  • typo [#5]
  • allow prefixed annotations [#6, #7]
  • better RequestParameters [#8]