-
Notifications
You must be signed in to change notification settings - Fork 5
/v2/info API #835
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
base: master
Are you sure you want to change the base?
/v2/info API #835
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <!-- | ||
| SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company | ||
|
|
||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| # Limes Rate API v2 specification | ||
|
|
||
| The URLs indicated in the headers of each section are relative to the endpoint URL advertised in the Keystone | ||
| catalog under the service type `limes-rates`. | ||
|
|
||
| Where permission requirements are indicated, they refer to the default policy. Limes operators can configure their | ||
| policy differently, so that certain requests may require other roles or token scopes. | ||
|
|
||
| Use the table of contents icon | ||
| <img src="https://github.com/github/docs/raw/main/contributing/images/table-of-contents.png" width="25" height="25" /> | ||
| near the top left corner of this document to jump to a specific section on this page. | ||
|
|
||
|
|
||
|
|
||
|
|
||
| TODO |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <!-- | ||
| SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company | ||
|
|
||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| # Limes Resource API v2 specification | ||
|
|
||
| The URLs indicated in the headers of each section are relative to the endpoint URL advertised in the Keystone | ||
| catalog under the service type `resources`. | ||
|
|
||
| Where permission requirements are indicated, they refer to the default policy. Limes operators can configure their | ||
| policy differently, so that certain requests may require other roles or token scopes. | ||
|
|
||
| Use the table of contents icon | ||
| <img src="https://github.com/github/docs/raw/main/contributing/images/table-of-contents.png" width="25" height="25" /> | ||
| near the top left corner of this document to jump to a specific section on this page. | ||
|
|
||
| TODO |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <!-- | ||
| SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company | ||
|
|
||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| # V2 API Specification | ||
|
|
||
| In an attempt to streamline interaction of consumers with the Limes API, we are | ||
| working on a re-designed version 2 of the API. It still differentiates the two | ||
| types of entities, **resources** and **rates** | ||
|
|
||
| The Limes API v2 has therefore been split into two separately documented sub-specifications: | ||
|
|
||
| - [Resource API spec](./api-spec-resources.md) | ||
| - [Rate API spec](./api-spec-rates.md) |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One of my big gripes with the v1 API test suite is having a billion As a possible idea, for each "class" of tests, we could have a baseline as an So then we could test We will have to see how this scales to full reports with real data. I'm also open for alternative suggestions for how to structure this. But I would like to not go down the "bunch of slightly different JSON files" route again.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How would you modify the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We agreed that modifying the full JSON with some kind of additional language would make sense, but the question is which one. We make this an exploratory task to find the right package to modify the full json objects. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| { | ||
| "service_areas": { | ||
| "first": { | ||
| "services": { | ||
| "first": { | ||
| "version": 1, | ||
| "display_name": "", | ||
| "resources": { | ||
| "capacity": { | ||
| "resources": { | ||
| "capacity": { | ||
| "display_name": "", | ||
| "unit": "B", | ||
| "topology": "az-aware", | ||
| "has_capacity": true, | ||
| "has_quota": true | ||
| } | ||
| } | ||
| }, | ||
| "things": { | ||
| "resources": { | ||
| "things": { | ||
| "display_name": "", | ||
| "topology": "flat", | ||
| "has_capacity": false, | ||
| "has_quota": true | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "rates": { | ||
| "objects:create": { | ||
| "display_name": "", | ||
| "topology": "flat", | ||
| "has_usage": true, | ||
| "limits": { | ||
| "default_limit": 5000, | ||
| "default_window": "1s" | ||
| } | ||
| }, | ||
| "objects:delete": { | ||
| "display_name": "", | ||
| "unit": "MiB", | ||
| "topology": "flat", | ||
| "has_usage": true | ||
| }, | ||
| "objects:unlimited": { | ||
| "display_name": "", | ||
| "unit": "KiB", | ||
| "topology": "flat", | ||
| "has_usage": true | ||
| }, | ||
| "objects:update": { | ||
| "display_name": "", | ||
| "topology": "flat", | ||
| "has_usage": true | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "second": { | ||
| "services": { | ||
| "second": { | ||
| "version": 1, | ||
| "display_name": "", | ||
| "resources": { | ||
| "capacity": { | ||
| "resources": { | ||
| "capacity": { | ||
| "display_name": "", | ||
| "unit": "B", | ||
| "topology": "az-aware", | ||
| "has_capacity": true, | ||
| "has_quota": true, | ||
| "commitment_config": { | ||
| "durations": [ | ||
| "1 hour", | ||
| "2 hours" | ||
| ], | ||
| "min_confirm_by": 604800 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "things": { | ||
| "resources": { | ||
| "things": { | ||
| "display_name": "", | ||
| "topology": "flat", | ||
| "has_capacity": false, | ||
| "has_quota": true | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "rates": {} | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.