Skip to content

Commit 6ca6a56

Browse files
InoueKonohaRick Anderson
authored andcommitted
Update parameter type of GetById in POST example (#3446)
1 parent 4a8c19b commit 6ca6a56

File tree

1 file changed

+2
-2
lines changed
  • aspnetcore/includes/webApi

1 file changed

+2
-2
lines changed

aspnetcore/includes/webApi/end.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can use the Location header URI to access the resource you just created. Rec
3737

3838
```csharp
3939
[HttpGet("{id}", Name = "GetTodo")]
40-
public IActionResult GetById(string id)
40+
public IActionResult GetById(long id)
4141
```
4242

4343
### Update
@@ -54,4 +54,4 @@ public IActionResult GetById(string id)
5454

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

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

0 commit comments

Comments
 (0)