-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Is the Openshift API swagger.json exposed anywhere? #22122
Comments
@lholmquist, as near as I can tell, for release-3.11 that file is generated by this script: https://github.com/openshift/origin/blob/release-3.11/hack/update-generated-swagger-spec.sh Out of curiosity, what were you planning on doing with spec file? |
We have a Node.js module, openshift-rest-client, that we created and have been adding functionality "manually". we are looking to refactor the library so it generates the api automatically, instead of us adding things in manually. There is a nice kubernetes node module, which does something similar. One of the ways it can load the api is querying the running clusters If there isn't a similar endpoint for the Openshift api's, i can just use this file, which i've started to do, nodeshift/openshift-rest-client#113 |
@lholmquist, that looks quite interesting. My own interest in this is using the OpenShift OpenAPI specs to create REST API docs. I'll let you know if I learn anything helpful. It does look like a running cluster is queried to generate the spec for 3.11 here:
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I know there are swagger endpoint docs accessible at
OPENSHIFT_URL/openapi/v2
and alsoOPENSHIFT_URL/swagger.json
for the Kubernetes related API's.Is there also an equivalent endpoint for the Openshift api in swagger format. I see in this repo, there is this document, https://raw.githubusercontent.com/openshift/origin/master/api/swagger-spec/openshift-openapi-spec.json, but i'm not really sure if that is exposed as an endpoint in my Openshift Cluster.
The text was updated successfully, but these errors were encountered: