- Notifications
You must be signed in to change notification settings - Fork3
AmerSurkovic/ASP.NET-RESTful-CRUD-API
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Project implements RESTful CRUD web API in C# using ASP.NET for managing a banner model. Data is backed byMongoDB. Method providing the HTML stored in the banner is also implemented.
Controllers
Services
Repositories
Models
DataTransferObjects
Validators
GET api/banners
Returns all banners from the database.
GET api/banners/{id}
Returns the banner from the database for a specified ID.
POST api/banners
Creates a banner record in the database.
PUT api/banners/{id}
Updates the banner record in the database for a specified ID with sent update data.
DELETE api/banners/{id}
Removes the banner record from the database for a specified ID.
GET api/banners/{id}/html
Provides the HTML stored in the banner. Renders correctly in a modern browser - HTML load available in thedeveloped client.
Testing was done using both:
Used for testing all of the API calls. Provides a better insight to illegal calls and for observing error handling.
Also used for testing of the API calls but with focus on proper loading of HTML into the modern web browser.
Developed client uses all of the CRUD API calls includingHTML loading for a given banner. Since the CRUD API calls are tested and presented using Postman they will be not be shown again on the client side.More important aspect is tested through client - and that is correct rendering of HTML when called through the API for the specified bannner.
About
RESTful CRUD web API in C# using ASP.NET for managing a banner model
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.

















