ImagProcessController.cs
1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace AIA.Highlight.POC.API.Controllers
{
public class ImagProcessController : ApiController
{
// GET api/<controller>
public IEnumerable<string> Get()
{
return new string[] { "amrita", "vishnoi" };
}
// GET api/<controller>/5
public string Get(int id)
{
return "value";
}
// PUT api/<controller>/5
public void Put(int id, [FromBody]string value)
{
}
// DELETE api/<controller>/5
public void Delete(int id)
{
}
public HttpResponseMessage Post([FromBody]JObject maskImg)
{
return new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent("Have some issue") };
}
}
}