Skip to content

Commit

Permalink
Update parameter type of GetById in POST example (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
InoueKonoha authored and Rick-Anderson committed Jun 2, 2017
1 parent 4a8c19b commit 6ca6a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aspnetcore/includes/webApi/end.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You can use the Location header URI to access the resource you just created. Rec

```csharp
[HttpGet("{id}", Name = "GetTodo")]
public IActionResult GetById(string id)
public IActionResult GetById(long id)
```

### Update
Expand All @@ -54,4 +54,4 @@ public IActionResult GetById(string id)

The response is [204 (No Content)](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html).

![Postman console showing 204 (No Content) response](../../tutorials/first-web-api/_static/pmd.png)
![Postman console showing 204 (No Content) response](../../tutorials/first-web-api/_static/pmd.png)

0 comments on commit 6ca6a56

Please sign in to comment.