Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

JSON:API URL format support in Symfony routing #19

Open
dbalabka opened this issue Apr 17, 2019 · 0 comments
Open

JSON:API URL format support in Symfony routing #19

dbalabka opened this issue Apr 17, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@dbalabka
Copy link
Member

Problem

JSON:API provides recommendation for the resource URL format. It requires developer effort to follow this convention. There should be a way how to easily map URL resources to exact controllers actions.

Acceptance criteria

  1. No need to configure each route separately
  2. There is a possibility to overwrite autogenerated routes if needed

Implementation notes

  1. We can use controllers as services and route requests by tags. Tag should contain resource name.
  2. Anotations might be also supported

Example of routing configuration:
https://github.com/eosnewmedia/JSON-API-Server-Bundle/blob/master/src/Resources/config/routing.xml

@dbalabka dbalabka added the enhancement New feature or request label May 12, 2019
@dbalabka dbalabka added this to the 2.0 milestone May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant