Skip to content
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

Open
michalbundyra opened this issue Jan 10, 2020 · 10 comments
Open

Global Apigility API URL prefix #67

michalbundyra opened this issue Jan 10, 2020 · 10 comments
Labels
Enhancement New feature or request

Comments

@michalbundyra
Copy link
Member

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

@michalbundyra michalbundyra added the Enhancement New feature or request label Jan 10, 2020
@michalbundyra
Copy link
Member Author

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)

@michalbundyra
Copy link
Member Author

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.
But the need is effective.

Julien.

Le 15 juil. 2014 à 23:08, weierophinney notifications@github.com a écrit :

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.


Reply to this email directly or view it on GitHub.


Originally posted by @jguittard at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

@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)

@michalbundyra
Copy link
Member Author

@snapshotpl you've done something? some example? i need the same thing..


Originally posted by @stefanorg at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

Yes. I will show something in next week.
3 sty 2015 16:35 "stefanorg" notifications@github.com napisał(a):

@snapshotpl https://github.com/snapshotpl you've done something? some
example? i need the same thing..


Reply to this email directly or view it on GitHub
zfcampus/zf-apigility#51 (comment)
.


Originally posted by @snapshotpl at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

perfect i'll wait for you 👍


Originally posted by @stefanorg at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

@snapshotpl did you have any update?


Originally posted by @stefanorg at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

@stefanorg Tomorrow.
@weierophinney when you plan to release 1.1?


Originally posted by @snapshotpl at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

@snapshotpl any news about this? i'm really interested in this feature


Originally posted by @ildanno at zfcampus/zf-apigility#51 (comment)

@michalbundyra
Copy link
Member Author

any news on this feature?


Originally posted by @remizyaka at zfcampus/zf-apigility#51 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant