OracleFTW is a .NET 7 Web API that provides a functional CRUD (Create, Read, Update, Delete) interface for Oracle 11g. This project serves as a template for future projects requiring similar functionality with Oracle databases.
The project consists of two main layers:
-
API Layer (
ApiLayer
):- Responsible for handling HTTP requests and routing.
- Implements basic routing for the CRUD operations.
- Utilizes Swagger for API documentation.
-
Data Layer (
DataLayer
):- Contains interfaces and implementations for data access.
- Includes the following components:
IRepository
: Interface defining common database operations.IStudentService
: Interface defining operations specific to theStudent
entity.Student
Model: Represents theStudent
entity with its properties.Repository
andStudentService
: Implementations of the interfaces.DataFactory
: A static public class that serves as a centralized access point for the data layer components.
- Clone the repository.
- Set up the Oracle 11g database and ensure it is accessible.
- Configure the connection string in the
DataLayer
path:/Repository/Database.cs
and edit the connection string. (i will make use of the application.json in future :) ) - Build and run the project.
- Access the API endpoints using a tool like Postman or Open the
[Swagger UI](https://localhost:7196/swagger/index.html)
- Refer to the Swagger documentation for detailed API specifications.
The project has the following dependencies:
- .NET 7
- Oracle.ManagedDataAccess.Core
- Swashbuckle.AspNetCore (Swagger)
- Make sure the API project is running.
- Access the API endpoints according to the defined routes and HTTP methods.
- Refer to the Swagger documentation for detailed usage instructions.