]> git.somenet.org - pub/jan/aic18.git/blob - PdfService/Controllers/ValuesController.cs
fixed spelling mistake
[pub/jan/aic18.git] / PdfService / Controllers / ValuesController.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Threading.Tasks;
5 using Microsoft.AspNetCore.Mvc;
6
7 namespace PdfService.Controllers
8 {
9     [Route("api/[controller]")]
10     [ApiController]
11     public class ValuesController : ControllerBase
12     {
13         // GET api/values
14         [HttpGet]
15         public ActionResult<IEnumerable<string>> Get()
16         {
17             return new string[] { "value1", "value2" };
18         }
19
20         // GET api/values/5
21         [HttpGet("{id}")]
22         public ActionResult<string> Get(int id)
23         {
24             return "value";
25         }
26
27         // POST api/values
28         [HttpPost]
29         public void Post([FromBody] string value)
30         {
31         }
32
33         // PUT api/values/5
34         [HttpPut("{id}")]
35         public void Put(int id, [FromBody] string value)
36         {
37         }
38
39         // DELETE api/values/5
40         [HttpDelete("{id}")]
41         public void Delete(int id)
42         {
43         }
44     }
45 }