Forum Discussion

ivsss's avatar
ivsss
New Member
3 years ago

Use Swagger with connection string

Hello, can I want to use Swagger with a database connection string, where can I define which user name with which password will be connected?

 

I have a connection to a Microsoft SQL Server database. I use Swagger for all methods: GET, POST, PUT and DELETE.

Everything works fine, but I need to create a connection with the database for particular user (I have user name and user password). Is this possible? Should I use a connection string and how? Can I create a connection for particular user and still use swagger and if yes - how?

I am working with an ASP.NET Core 3.1 project and I am using Visual Studio and C#.

No RepliesBe the first to reply