Skip to content

Commit

Permalink
Fix typo in destinations presenter (#3818)
Browse files Browse the repository at this point in the history
fixes #3816
  • Loading branch information
svkrieger committed Jun 6, 2024
1 parent 58f8160 commit 417233b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/presenters/v3/route_destination_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def destination_hash

def build_links
links = {
destintions: {
destinations: {
href: url_builder.build_url(path: "/v3/routes/#{destination.route_guid}/destinations")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example Request
curl "https://api.example.org/v3/routes/[guid]/destinations/[guid]" \
-X PATCH \
-H "Authorization: bearer [token]"
-d '{"protocol: "http2"}'
-d '{"protocol": "http2"}'
```

```
Expand All @@ -31,7 +31,7 @@ Content-Type: application/json
"port": 8080,
"protocol": "http2",
"links": {
"self": {
"destinations": {
"href": "https://api.example.org/v3/routes/cbad697f-cac1-48f4-9017-ac08f39dfb31/destinations"
},
"route": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module VCAP::CloudController::Presenters::V3
port: route_mapping.presented_port,
protocol: route_mapping.protocol,
links: {
destintions: {
destinations: {
href: "http://api2.vcap.me/v3/routes/#{route.guid}/destinations"
},
route: {
Expand Down

0 comments on commit 417233b

Please sign in to comment.