Unverified Commit ed9421be authored by Daniel Roth's avatar Daniel Roth Committed by GitHub
Browse files

Use PUT request for storing push notification subscription (#274)

parent e94ed0a4
......@@ -145,7 +145,7 @@ Also add the `SubscribeToNotifications` method to `OrdersClient`.
```csharp
public async Task SubscribeToNotifications(NotificationSubscription subscription)
{
var response = await httpClient.PostAsJsonAsync("notifications/subscribe", subscription);
var response = await httpClient.PutAsJsonAsync("notifications/subscribe", subscription);
response.EnsureSuccessStatusCode();
}
```
......
......@@ -34,7 +34,7 @@ namespace BlazingPizza.Client
public async Task SubscribeToNotifications(NotificationSubscription subscription)
{
var response = await httpClient.PostAsJsonAsync("notifications/subscribe", subscription);
var response = await httpClient.PutAsJsonAsync("notifications/subscribe", subscription);
response.EnsureSuccessStatusCode();
}
}
......
......@@ -34,7 +34,7 @@ namespace BlazingPizza.Client
public async Task SubscribeToNotifications(NotificationSubscription subscription)
{
var response = await httpClient.PostAsJsonAsync("notifications/subscribe", subscription);
var response = await httpClient.PutAsJsonAsync("notifications/subscribe", subscription);
response.EnsureSuccessStatusCode();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment