美文网首页
功能简化版

功能简化版

作者: 跑者小越 | 来源:发表于2018-02-04 19:15 被阅读28次

users (用户)

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

volumes (谱册)

  1. List volumes
    GET /volumes

  2. List volumes created by a user
    GET /users/:uid/volumes

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

  4. Create a volume
    POST /volumes

  5. Edit a volume (需验证)
    PATCH /volumes/:vid

  6. Delete a volume (需验证)
    DELETE /volumes/:vid

  7. List scores in a volume
    GET /volumes/:vid/scores

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

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

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

相关文章

网友评论

      本文标题:功能简化版

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