# 1008-App-Version History

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /app/versions:
    post:
      summary: 1008-App-Version History
      deprecated: false
      description: Query app version history (defaults to 30-day release records).
      operationId: 1008_App_Version History
      tags:
        - II. List of Interfaces/1. application Services
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: string
                  description: App ID
                  examples:
                    - '1606549505'
                region:
                  type: string
                  description: Country/Region
                  examples:
                    - US
                limit:
                  type: string
                  description: Default Query 30 Days
                  examples:
                    - DAY_30
              x-apifox-orders:
                - appId
                - region
                - limit
              x-apifox-ignore-properties: []
            example:
              appId: '1606549505'
              region: US
              limit: DAY_30
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenApiBaseVOWanKaAppVersionVO'
              examples:
                '1':
                  summary: Success Example
                  value:
                    requestParam:
                      appId: com.moye.shelter
                      region: US
                      limit: DAY_30
                    result:
                      appId: com.moye.shelter
                      title: ''
                      icon: ''
                      version:
                        - code: ''
                          date: 0
                          logs: ''
                    creditsCost:
                      requestCredits: 0
                      baseCredits: 10
                      extraCredits: 0
                      totalCostCredits: 10
                    next: null
                '2':
                  summary: Success Example
                  value:
                    requestParam:
                      appId: com.moye.shelter
                      region: US
                      limit: DAY_30
                    result:
                      appId: com.moye.shelter
                      title: ''
                      icon: ''
                      version:
                        - code: ''
                          date: 0
                          logs: ''
                    creditsCost:
                      requestCredits: 0
                      baseCredits: 10
                      extraCredits: 0
                      totalCostCredits: 10
                    next: null
          headers: {}
          x-apifox-name: ''
      security:
        - apikey-header-x-openapi-key: []
      x-apifox-folder: II. List of Interfaces/1. application Services
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4128055/apis/api-478038409-run
components:
  schemas:
    OpenApiBaseVOWanKaAppVersionVO:
      type: object
      properties:
        requestParam:
          $ref: '#/components/schemas/WanKaAppVersionsQuery'
          description: Your request param.
        result:
          $ref: '#/components/schemas/WanKaAppVersionVO'
          description: Your response.
        creditsCost:
          $ref: '#/components/schemas/OpenApiPointCostVO'
          description: Credits cost info.
        next:
          $ref: '#/components/schemas/PaginationInfo'
          description: Next page info
      x-apifox-orders:
        - requestParam
        - result
        - creditsCost
        - next
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    PaginationInfo:
      type: object
      properties:
        taskId:
          type: string
          description: Task ID
        pageKey:
          type: string
          description: Page Key
        totalCount:
          type: integer
          description: Total Count
          format: int64
        totalPages:
          type: integer
          description: Total Pages
          format: int64
      x-apifox-orders:
        - taskId
        - pageKey
        - totalCount
        - totalPages
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    OpenApiPointCostVO:
      type: object
      properties:
        requestCredits:
          type: integer
          description: ''
        baseCredits:
          type: integer
          description: ''
        extraCredits:
          type: integer
          description: ''
        totalCostCredits:
          type: integer
          description: ''
      x-apifox-orders:
        - requestCredits
        - baseCredits
        - extraCredits
        - totalCostCredits
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    WanKaAppVersionVO:
      type: object
      properties:
        appId:
          type: string
          description: ''
        title:
          type: string
          description: ''
        icon:
          type: string
          description: ''
        version:
          type: array
          items:
            $ref: '#/components/schemas/VersionInfo'
            description: com.xiaoxi.openapi.model.vo.wanka.WanKaAppVersionVO.VersionInfo
          description: ''
      x-apifox-orders:
        - appId
        - title
        - icon
        - version
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    VersionInfo:
      type: object
      properties:
        code:
          type: string
          description: ''
        date:
          type: integer
          description: ''
          format: int64
        logs:
          type: string
          description: ''
      x-apifox-orders:
        - code
        - date
        - logs
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    WanKaAppVersionsQuery:
      type: object
      properties:
        appId:
          type: string
          description: ''
          examples:
            - com.moye.shelter
        region:
          type: string
          description: ''
          examples:
            - US
        limit:
          type: string
          description: ''
          enum:
            - ALL
            - DAY_90
            - DAY_30
            - DAY_60
          x-apifox-enum:
            - value: ALL
              name: ALL
              description: ALL
            - value: DAY_90
              name: DAY_90
              description: DAY_90
            - value: DAY_30
              name: DAY_30
              description: DAY_30
            - value: DAY_60
              name: DAY_60
              description: DAY_60
          examples:
            - |-
              DAY_30,DAY_60,DAY_90
              ALL（最近1年）
      x-apifox-orders:
        - appId
        - region
        - limit
      required:
        - appId
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    apikey-header-x-openapi-key:
      type: apiKey
      in: header
      name: x-openapi-key
servers:
  - url: https://api.foxdata.com/apiv1/open-api
    description: Api Server
security:
  - apikey-header-x-openapi-key: []

```
