.Dotnet 6 Web App API with 5 functions:
/api/teachers - GET
- Get all teachers data from SQL DB
/api/teachers/Id GET
- Get a teacher by teacher Id from SQL DB
/api/teachers/Id PUT
- Update a teacher by teacher Id
/api/teachers POST
- Create a teacher in SQL DB
/api/teachers/Id DELETE
- Delete a teacher from SQL DB
-
Git clone
-
Open Visual Studio
-
Open the project file - dotnet_webapp_backend_teachers_api/teachersrestapi/teachersrestapi.sln
-
Change the configuration in appsettings.json to connect to your db
-
Publish the project to Azure App Service
-
Create new App Service from Visual Studio UI
-
Deploy your application
-
Main page of the application - Swagger
- Open the swagger.json file from Swagger ui
- Copy the swagger url