@ -0,0 +1,41 @@ | |||||
{ | |||||
"version": "0.2.0", | |||||
"configurations": [ | |||||
{ | |||||
"name": ".NET Core Launch (web)", | |||||
"type": "coreclr", | |||||
"request": "launch", | |||||
"preLaunchTask": "build", | |||||
"program": "${workspaceRoot}\\bin\\Debug\\netcoreapp1.0\\Ordering.API.dll", | |||||
"args": [], | |||||
"cwd": "${workspaceRoot}", | |||||
"stopAtEntry": false, | |||||
"launchBrowser": { | |||||
"enabled": true, | |||||
"args": "${auto-detect-url}", | |||||
"windows": { | |||||
"command": "cmd.exe", | |||||
"args": "/C start ${auto-detect-url}" | |||||
}, | |||||
"osx": { | |||||
"command": "open" | |||||
}, | |||||
"linux": { | |||||
"command": "xdg-open" | |||||
} | |||||
}, | |||||
"env": { | |||||
"ASPNETCORE_ENVIRONMENT": "Development" | |||||
}, | |||||
"sourceFileMap": { | |||||
"/Views": "${workspaceRoot}/Views" | |||||
} | |||||
}, | |||||
{ | |||||
"name": ".NET Core Attach", | |||||
"type": "coreclr", | |||||
"request": "attach", | |||||
"processId": "${command.pickProcess}" | |||||
} | |||||
] | |||||
} |
@ -0,0 +1,16 @@ | |||||
{ | |||||
"version": "0.1.0", | |||||
"command": "dotnet", | |||||
"isShellCommand": true, | |||||
"args": [], | |||||
"tasks": [ | |||||
{ | |||||
"taskName": "build", | |||||
"args": [ | |||||
"${workspaceRoot}\\project.json" | |||||
], | |||||
"isBuildCommand": true, | |||||
"problemMatcher": "$msCompile" | |||||
} | |||||
] | |||||
} |
@ -1,44 +0,0 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Linq; | |||||
using System.Threading.Tasks; | |||||
using Microsoft.AspNetCore.Mvc; | |||||
namespace Microsoft.eShopOnContainers.Services.Ordering.API.Controllers | |||||
{ | |||||
[Route("api/[controller]")] | |||||
public class ValuesController : Controller | |||||
{ | |||||
// GET api/values | |||||
[HttpGet] | |||||
public IEnumerable<string> Get() | |||||
{ | |||||
return new string[] { "value1", "value2" }; | |||||
} | |||||
// GET api/values/5 | |||||
[HttpGet("{id}")] | |||||
public string Get(int id) | |||||
{ | |||||
return "value"; | |||||
} | |||||
// POST api/values | |||||
[HttpPost] | |||||
public void Post([FromBody]string value) | |||||
{ | |||||
} | |||||
// PUT api/values/5 | |||||
[HttpPut("{id}")] | |||||
public void Put(int id, [FromBody]string value) | |||||
{ | |||||
} | |||||
// DELETE api/values/5 | |||||
[HttpDelete("{id}")] | |||||
public void Delete(int id) | |||||
{ | |||||
} | |||||
} | |||||
} |