https://github.com/flango-dev/cqrs-rest
An example how to create RESTful API suitable for CQRS.
https://github.com/flango-dev/cqrs-rest
ddd ddd-patterns django django-ninja domain-driven-design python
Last synced: about 1 year ago
JSON representation
An example how to create RESTful API suitable for CQRS.
- Host: GitHub
- URL: https://github.com/flango-dev/cqrs-rest
- Owner: flango-dev
- Created: 2024-06-20T15:07:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T10:02:14.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T07:23:48.954Z (over 1 year ago)
- Topics: ddd, ddd-patterns, django, django-ninja, domain-driven-design, python
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cqrs-rest
An example how to implement a RESTful API for backend/frontend integration suitable for a bounded context (Django app) making use of the CQRS pattern using [`django-ninja`](https://github.com/vitalik/django-ninja).
## Run the demo
- `just project-setup`
## Usage
- `just project-run`
- OpenAPI documentation: `http://127.0.0.1:8000/api/docs`
## References and inspiration
- [stackoverflow - RESTful API Design and CQRS (accepted answer)](https://stackoverflow.com/a/48141654/5308983)
- [ReST vs CQRS: The Trigger Pattern](https://hawkins6423.github.io)
- [stackoverflow - What is the difference between PUT, POST and PATCH? (most liked answer)](https://stackoverflow.com/a/40711235/5308983)