This is a sample API built using C# ASP.NET that demonstrates CRUD (Create, Read, Update, Delete) operations on a hypothetical resource.
To get started with using this API, follow the instructions below.
- .NET SDK installed on your machine.
- Visual Studio or any text editor of your choice.
- Clone this repository to your local machine:
git clone https://github.com/guettafa/ASP.NET-API.git
- Go to project dir
cd ASPAPI
- Build solution
dotnet build
- Run the application
dotnet run
Method | Endpoint | Description |
---|---|---|
GET | /movie/ |
Retrieve all resources. |
GET | /movie/{id} |
Retrieve a specific resource by ID. |
POST | /movie/ |
Create a new resource. |
PUT | /movie/ |
Update an existing resource. |
DELETE | /movie/{id} |
Delete a resource by ID. |