Statistics
37581
3
1
19d
Badges
Tags
api
Dependencies

Apitte Negotiation

Content negotiation for Apitte.

Transform response entity into response with unified format in dependence on Accept header and uri path suffix /api/v1/users(.json|.xml)

Build Status Code coverage Licence Downloads this Month Downloads total Latest stable PHPStan

Discussion / Help

Join the chat

Documentation

Version

State Version Branch Nette PHP
dev ^0.7 master 3.0+ ^7.2
stable ^0.6 master 3.0+ ^7.2
stable ^0.5 master 2.4 >=7.1
stable ^0.3 master 2.4 >=5.6

Maintainers


Milan Felix Šulc

Marek Bartoš

Sponsoring

The development is sponsored by Tlapnet

  • v0.6.0 v0.6.0

    Diff: v0.5...v0.6.0

    Changes:

  • v0.5 v0.5

    Diff: v0.4...v0.5

    Changes:

    • rewrited documentation
    • core v0.5
    • negotiator tags are optional ddef7bf
    • removed option catchException, it's now configured in core 0a1848d
    • add context from error to response only if not empty 22a1e60
  • v0.4 v0.4

    Bump! 🎉

    Diff: v0.3...v0.4

    Changes:

    • Strict types and native typehints
    • Handle errors properly
      • each transformer (csv, json) transform exception messages which are not designed to be displayed for user into a general message (in production mode only, it's a security feature)
      • each transformer set http code and error message into response properly
  • v0.3 v0.3

    Bump! 🎃

    Diff: v0.2.1...v0.3

    This is last release for PHP 5.6.

  • v0.2.1 v0.2.1

    Bump! 🇧🇩

    Diff: v0.2...v0.2.1

    Changes:

    • added ObjectEntity [#3]
  • v0.2 v0.2

    Bump! 🇫🇰

    Diff: v0.1.1...v0.2

    Changes:

    • display better message if there's exception
    • added MappingEntity
  • v0.1.1 v0.1.1

    Bump! ⛵️

    Diff: v0.1...v0.1.1

    Changes:

    • bugfix ResponseEntityDecorator.php
  • v0.1 v0.1

    First bump! 👊

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com