prima release sito MP-API (MVC/API )
This commit is contained in:
@@ -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 MP_API.Controllers
|
||||
{
|
||||
public class insEnabController : ApiController
|
||||
{
|
||||
// GET api/enabled
|
||||
public IEnumerable<string> Get()
|
||||
{
|
||||
return new string[] { "1020: OK", "1021: NO" };
|
||||
}
|
||||
|
||||
// GET api/enabled/5
|
||||
public string Get(int id)
|
||||
{
|
||||
return id.ToString() + "???";
|
||||
}
|
||||
|
||||
// POST api/enabled
|
||||
public void Post([FromBody]string value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT api/enabled/5
|
||||
public void Put(int id, [FromBody]string value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE api/enabled/5
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user