跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
品牌标识

真紅の資源討論組

  1. 主页
  2. General
  3. 开发者须知 | for developer & api document

开发者须知 | for developer & api document

已定时 已固定 已锁定 已移动 General
4 帖子 2 发布者 570 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • shinnkuS 离线
    shinnkuS 离线
    shinnku
    写于 最后由 编辑
    #1

    警告⚠️: 这则帖子不是给非开发者观看
    论坛食用 & 规则贴参考此篇文章: https://bbs.shinnku.com/topic/101

    可愛くてごめん

    1 条回复 最后回复
    0
    • shinnkuS shinnku 在 中固定了该主题
    • shinnkuS 离线
      shinnkuS 离线
      shinnku
      写于 最后由 shinnku 编辑
      #2

      1. Forum structure (论坛架构)

      https://galgame.dev/ is powered by Node.js and Redis, It utilizes web sockets for instant interactions and real-time notifications. It takes the best of the modern web by using Socks .io: real-time streaming discussions, mobile responsiveness, and rich RESTful read/write APIs, while staying true to the original bulletin board/forum format → categorical hierarchies, local user accounts, and asynchronous messaging.

      Cloudflare CDN <-> mutipule Nginx web servers <-> Forum clusters <-> Redis cluster with S3 for Image Storage.

      可愛くてごめん

      1 条回复 最后回复
      0
      • shinnkuS 离线
        shinnkuS 离线
        shinnku
        写于 最后由 编辑
        #3

        Authentication

        There are a multitude of ways to authenticate.

        Cookie Authentication

        By default, the API will attempt to find a valid session in the browser's cookies. A valid login session is required for API calls that pertain to operations involving a logged-in user.
        For example, /api/unread is a route showing unread topics, and is not accessible by guest users. Most data transfer utilities like cURL will allow you to construct something like a cookie, to be sent alongside the request, to function much like a browser cookie. This should work with the API.

        Bearer Authentication

        Both the Read API and Write API offer bearer authentication, as administered through the administration panel.

        可愛くてごめん

        1 条回复 最后回复
        1
        • yurzhangY 离线
          yurzhangY 离线
          yurzhang
          写于 最后由 编辑
          #4

          It looks like this topic is no longer being updated.
          For those who want to use the API, basically check these two API documents:

          • NodeBB Read API
          • NodeBB Write API

          I believe we can see someday again white eternity...

          1 条回复 最后回复
          1
          回复
          • 在新帖中回复
          登录后回复
          • 从旧到新
          • 从新到旧
          • 最多赞同


          • 登录

          • 没有帐号? 注册

          • 登录或注册以进行搜索。
          Powered by NodeBB Contributors
          • 第一个帖子
            最后一个帖子
          0
          • 版块
          • 最新
          • 标签
          • 热门
          • 用户
          • 群组