-
Notifications
You must be signed in to change notification settings - Fork 5
Discover namespaces via ORD Configuration #68
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
Draft
Fannon
wants to merge
3
commits into
main
Choose a base branch
from
discover-namespaces-via-ord-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Fannon marked this conversation as resolved.
Outdated
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,243 @@ | ||
| { | ||
| "$schema": "https://open-resource-discovery.github.io/specification/spec-v1/interfaces/Document.schema.json", | ||
| "openResourceDiscovery": "1.12", | ||
| "description": "This is an example ORD document which is unprotected and openly accessible.", | ||
| "perspective": "system-version", | ||
| "policyLevels": ["sap:core:v1"], | ||
| "describedSystemInstance": { | ||
| "baseUrl": "https://ord-reference-application.cfapps.sap.hana.ondemand.com" | ||
| }, | ||
| "policyLevel": "sap:core:v1", | ||
| "apiResources": [ | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomyLifecycle:v0", | ||
| "title": "Astronomy API", | ||
| "shortDescription": "The Astronomy API allows you to discover...", | ||
| "description": "A longer description of this API with **markdown** \n## headers\n etc...", | ||
| "version": "0.3.3", | ||
| "lastUpdate": "2023-02-03T06:44:10Z", | ||
| "visibility": "public", | ||
| "releaseStatus": "sunset", | ||
| "deprecationDate": "2020-02-03T15:47:04+00:00", | ||
| "sunsetDate": "2023-02-03T06:44:10Z", | ||
| "successors": ["sap.xref:apiResource:astronomyLifecycle:v1", "sap.xref:apiResource:astronomyLifecycle:v2"], | ||
| "partOfPackage": "sap.xref:package:ord-reference-app-apis-lifecycle:v1", | ||
| "partOfConsumptionBundles": [ | ||
| { | ||
| "ordId": "sap.xref:consumptionBundle:noAuth:v1" | ||
| } | ||
| ], | ||
| "apiProtocol": "rest", | ||
| "apiResourceLinks": [ | ||
| { | ||
| "type": "api-documentation", | ||
| "url": "/swagger-ui.html?urls.primaryName=Astronomy%20V1%20API" | ||
| } | ||
| ], | ||
| "resourceDefinitions": [ | ||
| { | ||
| "type": "openapi-v3", | ||
| "mediaType": "application/json", | ||
| "url": "../sap.xref_apiResource_astronomy_v1/openapi-v3.json", | ||
| "accessStrategies": [ | ||
| { | ||
| "type": "open" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "entryPoints": ["/astronomy/v1"], | ||
| "extensible": { | ||
| "supported": "no" | ||
| }, | ||
| "exposedEntityTypes": [ | ||
| { | ||
| "ordId": "sap.xref:entityType:Constellation:v1" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomyLifecycle:v1", | ||
| "title": "Astronomy API (Successor Test)", | ||
| "shortDescription": "The Astronomy API allows you to discover...", | ||
| "description": "A longer description of this API with **markdown** \n## headers\n etc...", | ||
| "version": "1.0.3", | ||
| "lastUpdate": "2023-02-03T06:44:10Z", | ||
| "visibility": "public", | ||
| "releaseStatus": "deprecated", | ||
| "deprecationDate": "2023-02-03T15:47:04+00:00", | ||
| "sunsetDate": "2026-01-08T15:47:04+00:00", | ||
| "successors": ["sap.xref:apiResource:astronomyLifecycle:v2"], | ||
| "partOfPackage": "sap.xref:package:ord-reference-app-apis-lifecycle:v1", | ||
| "partOfConsumptionBundles": [ | ||
| { | ||
| "ordId": "sap.xref:consumptionBundle:noAuth:v1" | ||
| } | ||
| ], | ||
| "apiProtocol": "rest", | ||
| "apiResourceLinks": [ | ||
| { | ||
| "type": "api-documentation", | ||
| "url": "/swagger-ui.html?urls.primaryName=Astronomy%20V1%20API" | ||
| } | ||
| ], | ||
| "compatibleWith": [ | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomySP:v1", | ||
| "maxVersion": "1.0" | ||
| } | ||
| ], | ||
| "resourceDefinitions": [ | ||
| { | ||
| "type": "openapi-v3", | ||
| "mediaType": "application/json", | ||
| "url": "../sap.xref_apiResource_astronomy_v1/openapi-v3.json", | ||
| "accessStrategies": [ | ||
| { | ||
| "type": "open" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "entryPoints": ["/astronomy/v1"], | ||
| "extensible": { | ||
| "supported": "no" | ||
| }, | ||
| "entityTypeMappings": [ | ||
| { | ||
| "entityTypeTargets": [ | ||
| { | ||
| "ordId": "sap.xref:entityType:Constellation:v1" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomyLifecycle:v2", | ||
| "title": "Astronomy API (most recent)", | ||
| "shortDescription": "The Astronomy API allows you to discover...", | ||
| "description": "A longer description of this API with **markdown** \n## headers\n etc...", | ||
| "version": "2.0.5", | ||
| "lastUpdate": "2023-02-03T06:44:10Z", | ||
| "visibility": "public", | ||
| "releaseStatus": "active", | ||
| "partOfPackage": "sap.xref:package:ord-reference-app-apis-lifecycle:v1", | ||
| "partOfConsumptionBundles": [ | ||
| { | ||
| "ordId": "sap.xref:consumptionBundle:noAuth:v1" | ||
| } | ||
| ], | ||
| "apiProtocol": "rest", | ||
| "apiResourceLinks": [ | ||
| { | ||
| "type": "api-documentation", | ||
| "url": "/swagger-ui.html?urls.primaryName=Astronomy%20V1%20API" | ||
| } | ||
| ], | ||
| "compatibleWith": [ | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomySP:v1", | ||
| "maxVersion": "1.0" | ||
| } | ||
| ], | ||
| "resourceDefinitions": [ | ||
| { | ||
| "type": "openapi-v3", | ||
| "mediaType": "application/json", | ||
| "url": "../sap.xref_apiResource_astronomy_v1/openapi-v3.json", | ||
| "accessStrategies": [ | ||
| { | ||
| "type": "open" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "entryPoints": ["/astronomy/v1"], | ||
| "extensible": { | ||
| "supported": "no" | ||
| }, | ||
| "entityTypeMappings": [ | ||
| { | ||
| "entityTypeTargets": [ | ||
| { | ||
| "ordId": "sap.xref:entityType:Constellation:v1" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomySPI:v1", | ||
| "title": "Astronomy API (SPI)", | ||
| "shortDescription": "Abstract Contract for Astronomy API", | ||
| "description": "A longer description of this API with **markdown** \n## headers\n etc...", | ||
| "version": "1.0.3", | ||
| "lastUpdate": "2023-02-03T06:44:10Z", | ||
| "visibility": "public", | ||
| "releaseStatus": "active", | ||
| "partOfPackage": "sap.xref:package:ord-reference-app-apis-lifecycle:v1", | ||
| "partOfConsumptionBundles": [ | ||
| { | ||
| "ordId": "sap.xref:consumptionBundle:noAuth:v1" | ||
| } | ||
| ], | ||
| "apiProtocol": "rest", | ||
| "apiResourceLinks": [ | ||
| { | ||
| "type": "api-documentation", | ||
| "url": "/swagger-ui.html?urls.primaryName=Astronomy%20V1%20API" | ||
| } | ||
| ], | ||
| "compatibleWith": [ | ||
| { | ||
| "ordId": "sap.s4com:apiResource:SomeSharedContract:v1", | ||
| "maxVersion": "1.0" | ||
| } | ||
| ], | ||
| "resourceDefinitions": [ | ||
| { | ||
| "type": "openapi-v3", | ||
| "mediaType": "application/json", | ||
| "url": "../sap.xref_apiResource_astronomy_v1/openapi-v3.json", | ||
| "accessStrategies": [ | ||
| { | ||
| "type": "open" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "entryPoints": ["/astronomy/v1"], | ||
| "extensible": { | ||
| "supported": "no" | ||
| }, | ||
| "entityTypeMappings": [ | ||
| { | ||
| "entityTypeTargets": [ | ||
| { | ||
| "ordId": "sap.xref:entityType:Constellation:v1" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "packages": [ | ||
| { | ||
| "ordId": "sap.xref:package:ord-reference-app-apis-lifecycle:v1", | ||
| "title": "ORD Reference Application APIs (Deprecation Test)", | ||
| "shortDescription": "This is a reference application for the Open Resource Discovery protocol", | ||
| "description": "This reference application demonstrates how Open Resource Discovery (ORD) can be implemented, demonstrating different resources and discovery aspects", | ||
| "version": "1.0.0", | ||
| "partOfProducts": ["sap.xref:product:ord-reference-app:"], | ||
| "vendor": "sap:vendor:SAP:", | ||
| "tags": ["reference application"] | ||
| } | ||
| ], | ||
| "tombstones": [ | ||
| { | ||
| "ordId": "sap.xref:apiResource:astronomyLifecycle:v0", | ||
| "removalDate": "2021-03-12T06:44:10Z" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: We should add this as an example in the /examples folder, too.
We can do this along with then defining the JSON Schema for it.