Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 7b12373

Browse files
reidmitBrian Cunnie
andcommitted
V3: GET /v3 displays usage events endpoint
```json "usage_events": { "href": "https://api.example.com/v3/usage_events", "experimental": true }, ``` [#169237857] Co-authored-by: Reid Mitchell <rmitchell@pivotal.io> Co-authored-by: Brian Cunnie <bcunnie@pivotal.io>
1 parent 6458015 commit 7b12373

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

app/controllers/v3/root_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def v3_root
3333
links.merge!(create_link(:space_quotas))
3434
links.merge!(create_link(:stacks))
3535
links.merge!(create_link(:tasks))
36+
links.merge!(create_link(:usage_events, experimental: true))
3637
links.merge!(create_link(:users))
3738

3839
render :ok, json: MultiJson.dump({ links: links }, pretty: true)

spec/request/v3_root_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@
9494
'tasks' => {
9595
'href' => "#{link_prefix}/v3/tasks"
9696
},
97+
'usage_events' => {
98+
'href' => "#{link_prefix}/v3/usage_events",
99+
'experimental' => true
100+
},
97101
'users' => {
98102
'href' => "#{link_prefix}/v3/users"
99103
}

0 commit comments

Comments
 (0)