-
Notifications
You must be signed in to change notification settings - Fork 62
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
URI Pattern Inside and Outside of API ML #422
Comments
Hello Dan, |
We have talked about it with Jiri Andrys from Db2 Tools. Most of the API services use following URI pattern:
For example:
The current API gateway URL format has a different order of the compoments:
For example:
It has the following disadvantages for him:
ProposalThe proposal is to allow basic routing that would map:
to:
where This would make the APIML routing the same as the default Zuul routing. How to introduce this changeRemoving existing routing can be difficult. But it makes sense to add this new routing and use it together with existing routing. Steps:
|
@JirkaAichler @pinpan @dkelosky @petr-galik Jiri Andrys have approached me to share his pains with the current routing and we have brainstormed what would be helpful for him. It seems that it possible to help him and use a better URL format without need to change the whole Zowe at the same time. |
This document defines some term about URLs - https://github.com/zowe/api-layer/wiki/Components-of-URL |
This document describes existing routing and some older proposal for different routing types: https://github.com/zowe/api-layer/wiki/API-Gateway-Routing |
Looks great to me! |
Hi - The links no longer work. Where has the wiki moved? Can there be links to the old locations to the new locations? |
@dkelosky Hi - the wiki link was removed as the information there were outdated. We are also discussing how exactly we will go forward with respect to the API paths and afterwards we will document the results in the Zowe docs. |
Thank @balhar-jakub. I'm looking for a diagram that laid out Components of a URI that @plavjanik put together. I don't know if that would still be outdated. Perhaps in the future there can be some redirect or notice that old locations are now pointing to new ones. If these links are set elsewhere, they point to dead-ends without a clear path to finding the new location. |
The components of the URI with respect to the Conformance criteria is outlined here: As for the position of the service Id in the URL we are discussing the possibility to move it in the first place. The document outlining the possible solutions to this and their risks will be shared with the community once we have well written and understandable version. |
Hi @balhar-jakub - yes I still do not see the components of a URL. @plavjanik had a pretty cool diagram which described things like |
Hello @dkelosky, the GitHub wiki is also using a git repository. I have restored the referred pages. I have added a note to them to explain that they might be outdated and in case of the API Gateway Routing talking about possibilities so the users need to go to Zowe Docs for the current information. |
@balhar-jakub @janan07 maybe we should rescue the visual that Dan refers to and make sure its included in the relevant places in our existing Doc? |
@jalel01 Totally agree. I think that we should also go through these two pages and probably bring a bit more of it into Zowe docs. |
Thank you all! I've come to rely on the diagram when talking to new teams; it's incredibly helpful 😄 |
There is a new proposal for the way forward with respect to the API Path Patterns capturing potential ways forward and selected way forward based on the Architecture call. https://docs.google.com/document/d/1eCb8q9MBIktYS5-Lxysy6OcibtovZKqtnjZI19fOf3w/edit |
The implementation of the proposed changes was moved to a new separate issue: #688 As such I am closing this issue as there is nothing more to be done here. |
Copied from: zowe/sample-spring-boot-api-service#66
If we follow this:
We may have an endpoint outside of the API ML that is: /api/v1/status.
Through the API ML we would then have /api/v1/servicename/status
A concern is that this might make it difficult to be a client for both cases. Is that valid or is this normal in an API ML?
The text was updated successfully, but these errors were encountered: