-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Apigility API URL prefix #67
Comments
This, as well as API-specific route prefixes, are something I would like to provide in future versions. We can likely handle them similarly to how we handle URI versioning (i.e., a listener that injects the prefix into configured routes). Marking as an enhancement request. Originally posted by @weierophinney at zfcampus/zf-apigility#51 (comment) |
Matthew, Remember this issues I’ve had with such configuration a couple of months ago. Changes would have to be made into the ZF2 router, besides injections through listeners. Julien. Le 15 juil. 2014 à 23:08, weierophinney [email protected] a écrit :
Originally posted by @jguittard at zfcampus/zf-apigility#51 (comment) |
@weierophinney We need this feature in own project. I will be working on this on the next week, so I can create a merge request for this. I need only your advice where I should start Originally posted by @snapshotpl at zfcampus/zf-apigility#51 (comment) |
@snapshotpl you've done something? some example? i need the same thing.. Originally posted by @stefanorg at zfcampus/zf-apigility#51 (comment) |
Yes. I will show something in next week.
Originally posted by @snapshotpl at zfcampus/zf-apigility#51 (comment) |
perfect i'll wait for you 👍 Originally posted by @stefanorg at zfcampus/zf-apigility#51 (comment) |
@snapshotpl did you have any update? Originally posted by @stefanorg at zfcampus/zf-apigility#51 (comment) |
@stefanorg Tomorrow. Originally posted by @snapshotpl at zfcampus/zf-apigility#51 (comment) |
@snapshotpl any news about this? i'm really interested in this feature Originally posted by @ildanno at zfcampus/zf-apigility#51 (comment) |
any news on this feature? Originally posted by @remizyaka at zfcampus/zf-apigility#51 (comment) |
I've been thinking it would be nice to have global setting to prefix all API's build using Apigility. This would make Apigility modules being more portable between projects - e.g. when you deploy Apigility server on it's own (e.g. APIs are available under api.example.com) or you use Apigility modules within another application (example.com/api).
This could be done by injecting Api related routes into general application router.
Currently we create routes under 'router'->'routes' config. My quick suggestion would be to move this into 'api-router'->'routes' or just 'api-routes' config array.
What do you think?
Originally posted by @matuszeman at zfcampus/zf-apigility#51
The text was updated successfully, but these errors were encountered: