I need to create two endpoints with WebAPI. One will accept arbitrary JSON and an integer key, the other will return said JSON.
[Route("UpdateData")]
public async Task UpdateData(int dataKey, [HttpPost] XXX data)
{
}
[Route("GetData")]
public async Task<???> GetData(int dataKey)
{
}
I know how to do the database storage, I just need to know what the public API should look like.