File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/ProjectTemplates/Web.ItemTemplates/content/ApiController Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,39 +6,39 @@ namespace MyApp.Namespace
6
6
[ Route ( "api/[controller]" ) ]
7
7
[ ApiController ]
8
8
#if NameIsController
9
- public class ValuesController : Microsoft . AspNetCore . Mvc . ControllerBase
9
+ public class ValueController : Microsoft . AspNetCore . Mvc . ControllerBase
10
10
#else
11
- public class ValuesController : ControllerBase
11
+ public class ValueController : ControllerBase
12
12
#endif
13
13
{
14
14
#if( actions )
15
- // GET: api/<ValuesController >
15
+ // GET: api/<ValueController >
16
16
[ HttpGet ]
17
17
public IEnumerable < string > Get ( )
18
18
{
19
19
return new string [ ] { "value1" , "value2" } ;
20
20
}
21
21
22
- // GET api/<ValuesController >/5
22
+ // GET api/<ValueController >/5
23
23
[ HttpGet ( "{id}" ) ]
24
24
public string Get ( int id )
25
25
{
26
26
return "value" ;
27
27
}
28
28
29
- // POST api/<ValuesController >
29
+ // POST api/<ValueController >
30
30
[ HttpPost ]
31
31
public void Post ( [ FromBody ] string value )
32
32
{
33
33
}
34
34
35
- // PUT api/<ValuesController >/5
35
+ // PUT api/<ValueController >/5
36
36
[ HttpPut ( "{id}" ) ]
37
37
public void Put ( int id , [ FromBody ] string value )
38
38
{
39
39
}
40
40
41
- // DELETE api/<ValuesController >/5
41
+ // DELETE api/<ValueController >/5
42
42
[ HttpDelete ( "{id}" ) ]
43
43
public void Delete ( int id )
44
44
{
You can’t perform that action at this time.
0 commit comments