rxswift
V2EX  ›  问与答

Python 新手,使用 restfulframework 写接口,写一个接口就写一个 class,大家都是这样吗

  •  
  •   rxswift · Apr 8, 2022 · 1748 views
    This topic created in 1570 days ago, the information mentioned may be changed or developed.
    都是 post 请求,一个接口就写一个 class
    比如这样
    class networking(APIView):
    def post(self, request):
    ...
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:32 · PVG 05:32 · LAX 14:32 · JFK 17:32
    ♥ Do have faith in what you're doing.