muchogusto.log
๋ก๊ทธ์ธ
muchogusto.log
๋ก๊ทธ์ธ
RESTful API๐ก: ์ฅ๊ณ DRF์ Serializer ๋ฟ์๊ธฐ
์ ์๊ฒฝ
ยท
2020๋ 10์ 29์ผ
ํ๋ก์ฐ
0
Django REST framework
REST
django
rest_framework.serializer
restful api
serializer
0
๐ธ Play the Djangoย
๋ชฉ๋ก ๋ณด๊ธฐ
41/57
RESTfulํ API๋ฅผ ๋ง๋ค์ด ๋ณด์!
API ๋ฌธ์๋ฅผ ์ํ Swagger๐
RESTful API๐ก: ๋์ swag๐ swagger!
Django Serializer
์ง๋ ฌํ(serialize)๋ ์ ํฉํ ๊ตฌ์กฐ๋ก ์ฌ๊ตฌ์ฑํ ์ ์๋ ํฌ๋งท์ผ๋ก ๋ณํํ๋ ๊ณผ์ ์ ์๋ฏธ
rest_framework.serializers
class
Base
Serializer(Field)
class Serializer
Meta
class(type)
def as_serializer_error(exc)
class Serializer(
BaseSerializer, metaclass=SerializerMetaclass
)
def raise_errors_on_nested_writes(method_name, serializer, vlidated_data)
class
Model
Serializer(Serializer)
class
HyperLinked
ModelSerializer(ModelSerializer)
Reference
Python Django ๊ฐ์ข : ์ 7๊ฐ - Serializers (
https://076923.github.io//posts/Python-Django-7/
)
Efficient Bulk Create with Django Rest Framework (
https://medium.com/swlh/efficient-bulk-create-with-django-rest-framework-f73da6af7ddc
)
https://devissue.wordpress.com/2015/02/01/pycharm%ea%b3%bc-%ed%95%a8%ea%bb%98-django%ec%99%80-restframework%eb%a5%bc-%ed%99%9c%ec%9a%a9%ed%95%9c-%ec%9b%b9-%ec%82%ac%ec%9d%b4%ed%8a%b8-%ea%b5%ac%ec%b6%95%ed%95%98%ea%b8%b0/
https://pilyeooong.tistory.com/entry/DRF-Django-REST-Framework
https://www.django-rest-framework.org/tutorial/1-serialization/
https://medium.com/weekly-webtips/9-best-practices-for-rest-api-design-7fb0b462099b
https://blog.naver.com/headfat1218/221936378203
์ ์๊ฒฝ
#์์์ํ๋ฆ #์๊ฐ์๊ฐ #์๊ฐ์์ค๋ ์ท
ํ๋ก์ฐ
์ด์ ํฌ์คํธ
SW๋์์ธ๐ทโโ๏ธ: Django ์ค๊ณ ์ฒ ํ๊ณผ Best Practices
๋ค์ ํฌ์คํธ
RESTful API๐ก: URL์ ๋ค์ด๊ฐ๋ ํ๋ผ๋ฏธํฐ ๋ค์ด๋ฐ
0๊ฐ์ ๋๊ธ
๋๊ธ ์์ฑ