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
66 [ Route ( "api/[controller]" ) ]
77 [ ApiController ]
88 #if NameIsController
9- public class ValuesController : Microsoft . AspNetCore . Mvc . ControllerBase
9+ public class ValueController : Microsoft . AspNetCore . Mvc . ControllerBase
1010 #else
11- public class ValuesController : ControllerBase
11+ public class ValueController : ControllerBase
1212 #endif
1313 {
1414 #if( actions )
15- // GET: api/<ValuesController >
15+ // GET: api/<ValueController >
1616 [ HttpGet ]
1717 public IEnumerable < string > Get ( )
1818 {
1919 return new string [ ] { "value1" , "value2" } ;
2020 }
2121
22- // GET api/<ValuesController >/5
22+ // GET api/<ValueController >/5
2323 [ HttpGet ( "{id}" ) ]
2424 public string Get ( int id )
2525 {
2626 return "value" ;
2727 }
2828
29- // POST api/<ValuesController >
29+ // POST api/<ValueController >
3030 [ HttpPost ]
3131 public void Post ( [ FromBody ] string value )
3232 {
3333 }
3434
35- // PUT api/<ValuesController >/5
35+ // PUT api/<ValueController >/5
3636 [ HttpPut ( "{id}" ) ]
3737 public void Put ( int id , [ FromBody ] string value )
3838 {
3939 }
4040
41- // DELETE api/<ValuesController >/5
41+ // DELETE api/<ValueController >/5
4242 [ HttpDelete ( "{id}" ) ]
4343 public void Delete ( int id )
4444 {
You can’t perform that action at this time.
0 commit comments