Skip to content

Commit 92a2c4d

Browse files
add a new third-party package in serializers.md (#9717)
* Update serializers.md add a new third-party package in serializers section * Update third-party-packages.md add drf-shapeless-serializers to the serializers section. * Update docs/community/third-party-packages.md Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com> --------- Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
1 parent 97a771c commit 92a2c4d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/api-guide/serializers.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,10 @@ The [drf-writable-nested][drf-writable-nested] package provides writable nested
11891189

11901190
The [drf-encrypt-content][drf-encrypt-content] package helps you encrypt your data, serialized through ModelSerializer. It also contains some helper functions. Which helps you to encrypt your data.
11911191

1192+
## Shapeless Serializers
1193+
1194+
The [drf-shapeless-serializers][drf-shapeless-serializers] package provides dynamic serializer configuration capabilities, allowing runtime field selection, renaming, attribute modification, and nested relationship configuration without creating multiple serializer classes. It helps eliminate serializer boilerplate while providing flexible API responses.
1195+
11921196

11931197
[cite]: https://groups.google.com/d/topic/django-users/sVFaOfQi4wY/discussion
11941198
[relations]: relations.md
@@ -1212,3 +1216,4 @@ The [drf-encrypt-content][drf-encrypt-content] package helps you encrypt your da
12121216
[djangorestframework-queryfields]: https://djangorestframework-queryfields.readthedocs.io/
12131217
[drf-writable-nested]: https://github.com/beda-software/drf-writable-nested
12141218
[drf-encrypt-content]: https://github.com/oguzhancelikarslan/drf-encrypt-content
1219+
[drf-shapeless-serializers]: https://github.com/khaledsukkar2/drf-shapeless-serializers

docs/community/third-party-packages.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ To submit new content, [create a pull request][drf-create-pr].
8888
* [djangorestframework-dataclasses][djangorestframework-dataclasses] - Serializer providing automatic field generation for Python dataclasses, like the built-in ModelSerializer does for models.
8989
* [django-restql][django-restql] - Turn your REST API into a GraphQL like API(It allows clients to control which fields will be sent in a response, uses GraphQL like syntax, supports read and write on both flat and nested fields).
9090
* [graphwrap][graphwrap] - Transform your REST API into a fully compliant GraphQL API with just two lines of code. Leverages [Graphene-Django](https://docs.graphene-python.org/projects/django/en/latest/) to dynamically build, at runtime, a GraphQL ObjectType for each view in your API.
91+
* [drf-shapeless-serializers][drf-shapeless-serializers] - Dynamically assemble, configure, and shape your Django Rest Framework serializers at runtime, much like connecting Lego bricks.
9192

9293
### Serializer fields
9394

@@ -259,3 +260,4 @@ To submit new content, [create a pull request][drf-create-pr].
259260
[drf-redesign]: https://github.com/youzarsiph/drf-redesign
260261
[drf-material]: https://github.com/youzarsiph/drf-material
261262
[django-pyoidc]: https://github.com/makinacorpus/django_pyoidc
263+
[drf-shapeless-serializers]: https://github.com/khaledsukkar2/drf-shapeless-serializers

0 commit comments

Comments
 (0)