rxswift
V2EX  ›  问与答

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

  •  
  •   rxswift · Apr 8, 2022 · 1704 views
    This topic created in 1548 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   ·   2691 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:16 · PVG 20:16 · LAX 05:16 · JFK 08:16
    ♥ Do have faith in what you're doing.