Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Simple API with FastEndpoints and Slice Architecture

๐Ÿ“„ Overview

This project is a simple API built using the FastEndpoints NuGet package in .NET 8. The architecture follows the Slice Architecture pattern, where each feature of the system is isolated in its own slice, making the codebase more maintainable and scalable. The API is designed for rapid development with minimal overhead, focusing on clean and modular code.

๐Ÿ› ๏ธ Technologies Used

  • .NET 8
  • FastEndpoints - A lightweight .NET web framework designed to create fast and flexible HTTP APIs.
  • Slice Architecture - A feature-based architectural pattern that organizes code by feature (or slice) rather than by technical concern (e.g., controller, service, repository).
  • Minimal APIs - Simplified, minimal HTTP API creation using .NET's modern features.

โœจ Features

  • โœ… Fast and easy setup with FastEndpoints.
  • โœ… Modular codebase using slice architecture.
  • โœ… Built with .NET 8 for high performance.
  • โœ… Feature-focused code organization for scalability.

๐Ÿ—๏ธ Project Structure

This project uses Slice Architecture, which means that the code is organized by feature. Each slice represents a specific functionality or module of the application, encapsulating its own models, services, and endpoints.

Structure aplyed


|-- Features/
    |-- Products/
        |-- Create/
            |-- Data.cs
            |-- Request.cs
            |-- Response.cs
            |-- Endpoint.cs
        |-- Delete/
        |-- GetAll/
        |-- GetById/
|-- Common/
    |-- Database/
    |-- Middleware/
|-- appsettings.json
|-- Globalusings.cs
|-- Programs.cs

About

Create Simple API with .NET using FastEndpoints

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages