rest framework-解析器とレンダラー-長期メンテナンス

911 ワード


##############################解析器
#    ----     ,
# 
#      json  , request body  ,
#      json       ,        ,           ,   json   ,               ,
#         ?               ,
#    django    json   ,
#      rest framework  ,         ,      request.data        ,
# from rest_framework.parsers import JSONParser
#   rest framework   json   ,
#       ,     :parser_classes = [JSONParser]
#      ,          json   ,       ,json,form,multi,

 
#############################レスポンス
#    : response,
#        httpResponse,     ,         ,
# from rest_framework.response import Response  #   rest framework  Response,
#               ,     ,       ,   ,rest framework       ,        , Response   ,
#       postman     ?
#      ,      ,       ,     ,
# postman  ,    ,    ,
#              ,   ,   postman    ,
# postman      
# Postman       API    。