An open API service indexing awesome lists of open source software.

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.

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)