# 获取-图书列表

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/books:
    get:
      summary: 获取-图书列表
      deprecated: false
      description: |-
        获取-图书列表

        注意: 暂不支持筛选功能, 只能获取所有
      tags:
        - 图书管理
        - AJAX编程/图书管理
      parameters:
        - name: creator
          in: query
          description: 自己起个外号-获取自己的图书数据
          required: true
          example: 老李
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: 响应消息
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          title: 图书id
                        bookname:
                          type: string
                          title: 图书名字
                        author:
                          type: string
                          title: 图书作者
                        publisher:
                          type: string
                          title: 图书出版社
                      x-apifox-orders:
                        - id
                        - bookname
                        - author
                        - publisher
                      required:
                        - id
                        - bookname
                        - author
                        - publisher
                    title: 响应数组
                required:
                  - message
                  - data
                x-apifox-orders:
                  - message
                  - data
              example:
                message: 查询图书列表成功
                data:
                  - id: 84861
                    bookname: 《西游记》
                    author: 吴承恩
                    publisher: 人民文学出版社
                  - id: 84860
                    bookname: 《三国演义》
                    author: 罗贯中
                    publisher: 人民文学出版社
                  - id: 84859
                    bookname: 《水浒传》
                    author: 施耐庵
                    publisher: 人民文学出版社
          headers: {}
          x-apifox-name: 成功
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 业务状态码
                  message:
                    type: string
                    title: 响应消息
                  data:
                    type: object
                    properties: {}
                    x-apifox-orders: []
                    title: 响应数据
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 400001
                message: 校验失败:请检查必填项字段:creator
                data: {}
          headers: {}
          x-apifox-name: 请求参数有误
      security: []
      x-apifox-folder: 图书管理
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1937884/apis/api-49760214-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
