-
Notifications
You must be signed in to change notification settings - Fork 65
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
Where are the docs for the API frontends? #3968
Comments
I am not sure what is the nature of the issues, but generally we keep documentation available within Zowe Docs: On usage under - https://docs.zowe.org/stable/user-guide/api-mediation/using-api-mediation-layer Is it possible that you are talking about Open API Documentation for the API Catalog itself? |
Hi, I think this is where my confusion lies. I am not asking about the setting up of the API ML or API Catalog or Swagger frontends, but rather about what is actually on them, i.e. the endpoint URLs, the expected response codes etc. I have come across some issues with these, for example the get unix files from path endpoint URL or expected response codes being wrong. I can go into more detail if required, but again, do not know where these are actually defined. Thanks |
Can you go into more detail on what you are trying to do and where do you fail, please? |
Firstly, I would like to preface the following detail by saying that my experience with Zowe (and knowledge of the Open Mainframe Project as a whole) until 30 days ago was zero, I had not even heard of it other than in the name "zowe vscode". I have been on a "journey of discovery" that equates to a month of blindly stumbling around until I find tidbits of information here and there. In the
|
Thanks for the answer. Jobs and Datasets while being Java services are both using z/OSMF in the backend. On top of that API Mediation Layer itself uses the z/OSMF for authentication in the default setup. The issue and reason for very limited documentation around these services is that they were deprecated with V2 of the Zowe and even removed from Zowe with V3. Is there an issue for you using the z/OSMF APIs directly? |
Wait, really? Is there some information tidbit somewhere that explains why?
No, that is what I have done, as soon as I realised API ML used zosmf in the backend by default, I decided to investigate and realised how more mature it is so instantly switched to it (and subsequently to Zowe Node SDK for my purposes). I just didn't want to give up on API ML given it could be better long term, however with this information that the useful parts of the REST API have been deprecated, I don't see any point of continuing on with it further. Thanks for your replies and for clearing this confusion up for me! |
The information was published as part of the preparation for V3 - https://docs.zowe.org/stable/whats-new/release-notes/v3_0_0#breaking-changes-in-api-ml The primary reason was that the functionality was already superseded by the z/OSMF one and by the fact, that the services were deprecated in V2 and disabled by default and when asking about their usage we didn't find any user. The state of the projects is visible on zowe.org As for the confusion, the primary goal for API ML is to mediate APIs and provide information, SSO and MFA. There are discussions about whether and in what exact way the API Mediation Layer should also provide access to datasets and jobs and here I invite @dkelosky as he knows more on the specific topic. |
Okay, I think this is beginning to all make sense to me now. So, as I understand it, API ML can support multiple backend products that expose their APIs in one "central hub" which also means that SSO and MFA is easier to do for any given product in one place. Previously, what I thought, was that through its main APIs (e.g. jobs, datasets, unix, etc.) it would allow for multiple backends to exist while the API endpoints not changing. For example if Broadcom made their own set of tools, that could be hooked into the existing API endpoints without them changing for the frontend stuff while the backend stuff essentially running on something entirely different. I thought it made sense that those deprecated APIs are buggy because of how technically challenging it would've been to do that. But clearly that is not the case. Thanks! |
But what you are writing about is actually pretty interesting use case, that may make a lot of sense for the DevOps related Use Case of Zowe. @dkelosky This may be a valuable input to the work you are doing about supporting different backends for Zowe CLI. |
Thanks @balhar-jakub ... @JWaters02 - it's nice to hear that you are using the Zowe Node SDK. This piece backs Zowe CLI and Zowe Explorer. We don't normalize APIs at the API ML as you've noted. For example, IBM RSE, Zowe ZSS, and IBM z/OSMF all provide REST APIs to access z/OS data sets. All of these APIs can be accessed through API ML, but you cannot generically access z/OS data sets via a common API ML end point such that it routes to one of those 3 possibilities depending on what is available at a site. We also don't normalize operations in the Node SDK or Zowe CLI. We do however do something like this in Zowe Explorer, the VS Code extension. That is, you can request, z/OS jobs, data sets, and z/OS UNIX files in Zowe Explorer in the exact same way through Zowe Explorer UI, but depending on how it is configured, it will use z/OSMF, RSE, or FTP (and likely SSH soon). |
Hi all,
Where exactly are the docs for what is shown on the API Catalog/Swagger API frontends (given there are both for the APIML)? This repo is too massive to effectively search in it for what I am looking for. I have some issues with the API that runs on the mainframe that I want to look into but can't actually find any docs on it. Surely they must be generated by whatever is in the API, but what does that and how can I look at it? I'm still learning about Zowe and this APIML thing so sorry if I am missing tons of context... please ask me if necessary!
Thanks!
The text was updated successfully, but these errors were encountered: