markus / MarkusLogview / MARKUS_LOGVIEW / Controllers / ValuesController.cs @ 605adc4b
이력 | 보기 | 이력해설 | 다운로드 (781 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Net; |
5 |
using System.Net.Http; |
6 |
using System.Web.Http; |
7 |
|
8 |
namespace MARKUS_LOGVIEW.Controllers |
9 |
{ |
10 |
public class ValuesController : ApiController |
11 |
{ |
12 |
// GET api/values |
13 |
public IEnumerable<string> Get() |
14 |
{ |
15 |
return new string[] { "value1", "value2" }; |
16 |
} |
17 |
|
18 |
// GET api/values/5 |
19 |
public string Get(int id) |
20 |
{ |
21 |
return "value"; |
22 |
} |
23 |
|
24 |
// POST api/values |
25 |
public void Post([FromBody]string value) |
26 |
{ |
27 |
} |
28 |
|
29 |
// PUT api/values/5 |
30 |
public void Put(int id, [FromBody]string value) |
31 |
{ |
32 |
} |
33 |
|
34 |
// DELETE api/values/5 |
35 |
public void Delete(int id) |
36 |
{ |
37 |
} |
38 |
} |
39 |
} |