A .NET-based REST API designed to manage student information in his department. This API allows for the creation, retrieval, update, and deletion (CRUD) of student records. We use simple SQLite database due to the simplicity of useage.
- REST API
- Data Transfer Objects (DTOs)
- Extension Method
- Group Builder
- Validation using Data Annotation
- NuGet
- Entity Framework
- Dependency Injection
- Asynchronous Endpoints
-
First ensure you've those prerequisites:
- .NET SDK
- Install those extensions to your VS Code:
-
Clone the repo:
git clone [email protected]:mohamedhassan218/RESTful-Student.git
-
Change the directory:
cd RESTful-Student\Students\
-
Install the dependencies:
dotnet restore
-
You don't need to migrate the database due to we put the code that does this in the startup, so just run:
dotnet run
-
And now, you can test the API by running each request in the
test.http
file.
This project was developed following the comprehensive tutorial “Building a RESTful API in .NET” by Julio Casal.
The tutorial provided invaluable insights into creating robust and scalable RESTful APIs using the .NET framework. A heartfelt thank you to the author for sharing their expertise and making this learning experience possible.
If you're interested in learning more about building RESTful APIs with .NET, here are some additional resources: