Skip to content

amshekar/WebAPI-Mongo-RepositoryPattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebAPI-Mongo-RepositoryPattern

Web API with the mongodb

Step 1:

Clone the Code from https://github.com/amshekar/WebAPI-Mongo-RepositoryPattern.git

step 2 Change the Connection string of the MongoDB in the appsettings.json like "MongoConnection": { "ConnectionString": "mongodb://localhost:27017", "Database": "test" },

step 3: Restore/Build the solution in Visualstudio

Step 4: Run the solution Note :FYI check the launchsettings in launchsettings.json like default launch url "skillboardAPI": { "commandName": "Project", "launchBrowser": true, "launchUrl": "http://localhost:5000/api/imagegallery", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }

step 5: open the swagger to test for EX: http://localhost:5000/swagger/ui

Swagger.json to test the API and Help Documentation of the API http://localhost:5000/swagger/v1/swagger.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published