Skip to content

Commit f5621a5

Browse files
author
Bob Crowley
committed
added Echo controller
1 parent cd9d6d4 commit f5621a5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using System.Collections.Generic;
3+
4+
namespace PostmanDelivers.API.Controllers
5+
{
6+
[Route("api/[controller]")]
7+
[ApiController]
8+
public class EchoController : ControllerBase
9+
{
10+
[HttpPost]
11+
[Consumes("application/x-www-form-urlencoded")]
12+
public ActionResult Post([FromForm] Dictionary<string, string> stringsToEcho)
13+
{
14+
return Ok(stringsToEcho);
15+
}
16+
}
17+
}

PostmanDelivers.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TikTakToe.Engine.Tests", "T
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C2E67A42-FE57-4B29-831D-376F569A87E8}"
1111
ProjectSection(SolutionItems) = preProject
12+
.gitignore = .gitignore
1213
CustomScript.js = CustomScript.js
1314
Database.sql = Database.sql
1415
Postman Delivers.postman_globals.json = Postman Delivers.postman_globals.json

0 commit comments

Comments
 (0)