A ASP.NET sample project with login api.
This project is a sample code for a Login Web API.
The API will do following tasks:
- Receive credential data in JSON format in the body of request.
- Store credential to [user.txt] file. You'll see the file path in console log.
- Mockup user object with that credential.
- Return user object (with asscociated data)
For help getting started with .Net Web Api, view online tutorial.
If you already have your environment set-up, please ignore this. Otherwise please prefer following:
- Visual Studio Code
- C# for Visual Studio Code
- .NET 5.0 SDK
- Open source code in Visual Studio Code
- Run -> Start Debugging (F5)
[POST] https://localhost:5001/Login More details about the API: https://localhost:5001/swagger