Sample ASP.Net WebApi project for managing venues
- ASP.NET WebApi Backend.
- Entity Framework ORM using code-first migrations.
- Sql Server Database Backend.
- ViewModels Support using Automapper.
- Request Validation using FluentValidation.
- Fully RESTfull API.
-
Clone the project locally
git clone https://github.com/Feras94/Venues-Api.git
-
Open in Visual Studio
-
Restore Packages
-
Build and Run
GET /venues
Returns the top 10 venues ordered by creation date
GET /venues/{id}
Returns an object representing the venue with the specified id
Params:
id
the venue id
POST /venues
Creates a new venue object
Request Body:
{
name: string | required,
address: string | required,
type: string | required,
capacity: int | min:0
}
POST /venues/{id}
Updates a given venue with the specified data
Params:
id
the venue id.
Request Body:
{
name: string | required,
address: string | required,
type: string | required,
capacity: int | min:0
}
DELETE /venues/{id}
Delete a given venue by id
Params:
id
the venue id.