This repository contains examples of the most commonly used design patterns in C# programming language, implemented as a .NET Core API. The aim of this project is to provide a reference for developers who are interested in learning or refreshing their knowledge of design patterns, specifically in the context of building APIs.
- Behavioral Patterns
- Strategy
- Observer
- Command
- Creational Patterns
- Factory Method
- Singleton
- Structural Patterns
- Adapter
- Facade
- Creational Patterns
- Abstract Factory
- Builder
- Prototype
- Structural Patterns
- Bridge
- Composite
- Decorator
- Flyweight
- Proxy
- Behavioral Patterns
- Chain of Responsibility
- Interpreter
- Iterator
- Mediator
- Memento
- State
- Template Method
- Visitor
- Clone this repository to your local machine.
- Open the solution file in Visual Studio.
- Explore the code and run the API to see the patterns in action. You can use swagger or a tool like Postman to make API calls and observe the results.
If you would like to contribute to this project, please fork this repository and create a pull request. We welcome any contributions, big or small, to make this project better.
The examples in this project are inspired by the book "Design Patterns: Elements of Reusable Object-Oriented Software" by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides.