Status: Completed ๐
It's a REST API planned by me for a college assignment, where I perform a simple API made with C# that uses URI resources to return ping
(if you send pong) and pong
(if you send ping).
TThe result from request are in JSON format and when is send wrong path the return HTTP 404 (NOT FOUND).
The root path is PingOrPong
. So, when you run the project in localhost you must use https://localhost:{port}/PingOrPong/{you-request}
or you can use swagger using https://localhost:{port}/swagger
and do request using it.
PingOrPong/Pong
{
"msg": "Ping"
}
PingOrPong/Ping
{
"msg": "Pong"
}
You must have .NET 6 installed.
So you just use git clone and into root folder run:
$ dotnet run