美文网首页
哔谱哔谱接口文档

哔谱哔谱接口文档

作者: 跑者小越 | 来源:发表于2018-01-26 12:19 被阅读190次

users (用户)

  1. Get an user information(需验证)
    GET /users/:uid/info

volumes (谱册)

  1. List volumes
    GET /volumes

Response

{
  {
    "vid": 1,
    "name": "2018年01月新番精选",
    "cover": "https://user-images.githubusercontent.com/35213527/35343025-8dbb8604-0164-11e8-9ee9-107ed45359c7.png",
    "describe": "I'm having a problem with this.",
    "uid": 1,
    "label":[
        "新番",
        "老番"
      ],
    "status":0,
    "create_date":@date
  },
  {
    "vid": 1,
    "name": "2018年01月新番精选",
    "cover": "https://user-images.githubusercontent.com/35213527/35343025-8dbb8604-0164-11e8-9ee9-107ed45359c7.png",
    "describe": "I'm having a problem with this.",
    "uid": 1,
    "label":[
        "新番",
        "老番"
      ],
    "status":0,
    "create_date":@date
  },
  {
    "vid": 1,
    "name": "2018年01月新番精选",
    "cover": "https://user-images.githubusercontent.com/35213527/35343025-8dbb8604-0164-11e8-9ee9-107ed45359c7.png",
    "describe": "I'm having a problem with this.",
    "uid": 1,
    "label":[
        "新番",
        "老番"
      ],
    "status":0,
    "create_date":@date
  }
}
  1. List volumes created by a user
    GET /users/:uid/volumes

  2. Get a single volume
    GET /volumes/:vid

  3. Create a volume
    POST /volumes

Example

  {
    "name": "2018年01月新番精选",
    "uid": 1
  }

Response

Status: 201 Created
Location: https://api.bipubipu.com/volumes/:vid

  {
    "vid": 1,
    "name": "2018年01月新番精选",
    "cover": "template_url",
    "describe": "none",
    "uid": 1,
    "label":[ ],
    "status":1,
    "create_date":@date
  }
  1. Edit a volume (需验证)
    PATCH /volumes/:vid

Example

  {
    "name": "2018年01月新番精选",
    "cover": "https://user-images.githubusercontent.com/35213527/35343025-8dbb8604-0164-11e8-9ee9-107ed45359c7.png",
    "describe": "I'm having a problem with this.",
    "label":[
        "新番",
        "老番"
      ],
    "status":0
  }

Response

Status: 200 OK

  {
    "vid": 1,
    "name": "2018年01月新番精选",
    "cover": "https://user-images.githubusercontent.com/35213527/35343025-8dbb8604-0164-11e8-9ee9-107ed45359c7.png",
    "describe": "I'm having a problem with this.",
    "uid": 1,
    "label":[
        "新番",
        "老番"
      ],
    "status":0,
    "create_date":@date
  }
  1. Delete a volume (需验证)
    DELETE /volumes/:vid

Response

Status: 204 No Content
  1. List scores in a volume
    GET /volumes/:vid/scores

  2. Add a score to a volume (需验证)
    POST /volumes/:vid/scores

  3. Delete a score from a volume (需验证)
    DELETE /volumes/:vid/scores/:sid

favorite (收藏夹)

  1. List scores in a favorite
    GET /users/:uid/favorite

  2. Add a score to a favorite (需验证)
    POST /users/:uid/favorite/scores

  3. Delete a score from a favorite (需验证)
    DELETE /users/:uid/favorite/scores/:sid

  4. Setting the status of a favorite(需验证)
    PATCH /users/:uid/favorite

collection(谱册收藏夹)

  1. List volumes in a collection
    GET /users/:uid/collection

  2. Add a volume to a collection (需验证)
    POST /users/:uid/collection/scores

  3. Delete a volume from a collection (需验证)
    DELETE /users/:uid/collection/scores/:sid

  4. Setting the status of a collection(需验证)
    PATCH /users/:uid/collection

search (搜索)

  1. Search volumes
    GET /search/volumes

举例:列出所有含有新番标签,状态公开,按创建日期降序排列的谱册
GET /search/volumes?label=新番&status=1&sort=created&order=desc

举例:列出所有状态公开,按被收藏数量降序排列的谱册
GET /search/volumes?status=1&sort=hot&order=desc

Name Type Description
label string Filter volumes based on their labels.
status TINYINT(4) Filter volumes based on their status. deleted:0,public:1,private:2,reviewed:3.Default: 1.
sort string The sort field. Can be hot, created. Default: results are sorted by hot.
order string The sort order if sort parameter is provided. One of asc or desc. Default: desc

相关文章

  • 哔谱哔谱接口文档

    users (用户) Get an user information(需验证)GET /users/:uid/in...

  • 哔谱哔谱PRD

    PRD 产品需求文档 Product Requirement Document,本需求文档使用「Use Case...

  • 【哔谱哔谱】工作划分

    哔谱周刊 不定期更新(大新闻,现象级作品,特殊日期,某一作品特辑等)1. 主题策划2. 投稿筛选推荐3. 去掉求谱...

  • 读《百妖谱》有感

    我今天没去看现代老师布置的读书作业,偷了点小懒看了会《百妖谱》的动画和漫画。哔哩哔哩里的《百妖谱》也只有一集...

  • 哔哔哔哔哔~~哔~~

    老板清早发飙,问为什么生意这么差? 在上班去的地铁上,接到了老总无数个电话。 可怜我刚开了一把王者荣耀,电话轰炸结...

  • 哔哔哔

    哔哔哔 哔哔哔 哔哔哔 哔哔哔 哔哔哔 哔哔哔 哔哔哔 哔哔哔 哔哔哔 ...

  • 哔哔哔哔哔

    在看从零开始做运营。 一边看一边和我暑假实习的表现作比较,觉得自己真是段位太浅,还不沉下心来学习。 当时第一次定指...

  • 哔哔哔哔

    每个人其实做好自己分内的事就好了 不需要把自己和别人挂钩 想那么多其实也挺可笑的 不懂装明白

  • “哔哔哔哔”

    临近半夜才想起我的小电驴没电了。 小电驴就停在屋外,带电子锁的那种。我说的是屋外而不是楼下,细心的人就不难从这样的...

  • 百妖谱—灰狐 所感

    最近看到哔哩哔哩上线了新国漫《百妖谱》,之前看预告的时候,就感觉很不错,正式上线后,特意去看了,内心感慨,又一国漫...

网友评论

      本文标题:哔谱哔谱接口文档

      本文链接:https://www.haomeiwen.com/subject/uibiaxtx.html