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/ public IEnumerable Get() { return new string[] { "amrita", "vishnoi" }; } // GET api//5 public string Get(int id) { return "value"; } // PUT api//5 public void Put(int id, [FromBody]string value) { } // DELETE api//5 public void Delete(int id) { } public HttpResponseMessage Post([FromBody]JObject maskImg) { return new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent("Have some issue") }; } } }