-
make changes in DefaultConnection of
appsettings.json"ConnectionStrings": { "DefaultConnection": "server=SERVER_NAME;database=DATABASE_NAME;trusted_connection=true;" },
-
For Database connection
dotnet build
dotnet ef migrations add InitialCreate --context DataBaseContext --output-dir Migrations
dotnet ef database update
For
AuthenticationExceptionuse these commandsdotnet dev-certs https --clean dotnet dev-certs https --trust
dotnet run
-
Use
postmanorthunderclientfurther- POST method
https://localhost:5001/api/authenticateThere in basic auth use these credentials
UserName: admin@localhost Password: Passcode1
https://localhost:5001/api/authenticate
https://localhost:5001/api/authenticate
https://localhost:5001/api/administration/1
https://localhost:5001/api/authenticate
https://localhost:5001/api/authenticate/1
https://localhost:5001/api/order/order
https://localhost:5001/api/order/drug
https://localhost:5001/api/products/1
{
"MemberId":"2434",
"ProductName": "ICICI",
"RequiredDate": "1999-11-18T06:30:00",
"Quantities": 2,
"UserId":"1",
}https://localhost:5001/api/ContactUs/
https://localhost:5001/api/ContactUs/1

