【成功】测试:Poto 利用 api 发帖

本帖成功通过 api 发布!

Poto 的一小步,论坛玩法的一大步

1 Like

https://docs.discourse.org/

如果青蛙没关的话,这个应该可以吧?

试了下,网页发帖就是这个api
https://docs.discourse.org/#operation/createTopicPostPM

这种网址效果怎么做的

可以把這個api整合到腳踏板上,之後用腳来發帖。

他们是用 redoc 做的

<!DOCTYPE html>
<html>
  <head>
    <title>Discourse API Docs</title>
    <!-- needed for adaptive design -->
    <link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!--
    ReDoc doesn't change outer page styles
    -->
    <style>
      body {
        margin: 0;
        padding: 0;
      }
      redoc api-logo {
        padding: 15px;
      }
    </style>
  </head>
  <body>
    <redoc spec-url='https://docs.discourse.org/openapi.json' lazy-rendering></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js"> </script>
  </body>
</html>