rxswift
V2EX  ›  问与答

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

  •  
  •   rxswift · Apr 8, 2022 · 1742 views
    This topic created in 1566 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   ·   1194 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:31 · PVG 07:31 · LAX 16:31 · JFK 19:31
    ♥ Do have faith in what you're doing.