From 69f27fd4bfc5a46fad019b06c9c8d06159c400b9 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 13 Feb 2020 21:27:03 +0200 Subject: Midwork, Machine Service Gateway --- .../Controllers/ValuesController.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/ValuesController.cs (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/ValuesController.cs') diff --git a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/ValuesController.cs b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/ValuesController.cs new file mode 100644 index 000000000..2c742706e --- /dev/null +++ b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/ValuesController.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; + +namespace Tango.MachineService.Gateway.Controllers +{ + public class ValuesController : ApiController + { + // GET api/values + public IEnumerable Get() + { + return new string[] { "value1", "value2" }; + } + + // GET api/values/5 + public string Get(int id) + { + return "value"; + } + + // POST api/values + public void Post([FromBody]string value) + { + } + + // PUT api/values/5 + public void Put(int id, [FromBody]string value) + { + } + + // DELETE api/values/5 + public void Delete(int id) + { + } + } +} -- cgit v1.3.1