# 6. 获取某园区的短网址

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /app_adminparkinglot/v1.smartpark/getSmartparkShortUrl:
    post:
      summary: 6. 获取某园区的短网址
      deprecated: false
      description: >-
        使用场景：园区列表，获取某园区的短网址，设备端初始化时使用。


        > [Pub · 智能停车收费管理系统API文档 ·
        看云](https://www.kancloud.cn/zuomingsheng/parkinglot/2309829#2_url_37)
      tags:
        - admin 👨‍💻/parkinglot/v1/Smartpark
        - admin
      parameters:
        - name: X-Client
          in: header
          description: ''
          required: true
          example: '{{x_client}}'
          schema:
            type: string
        - name: X-ApifoxUser
          in: header
          description: ''
          required: true
          example: '{{apifox_user}}'
          schema:
            type: string
        - name: X-Time
          in: header
          description: ''
          required: true
          example: '{{timestamp}}'
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                id:
                  description: 园区id
                  example: 1
                  type: integer
              required:
                - id
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    x-apifox-orders: []
                  msg:
                    type: string
                  code:
                    type: integer
                required:
                  - data
                  - msg
                  - code
                x-apifox-orders:
                  - data
                  - msg
                  - code
              examples:
                '1':
                  summary: success
                  value:
                    data:
                      short_url: 7was
                    msg: ''
                    code: 1
                '2':
                  summary: error
                  value:
                    data: {}
                    msg: err msg
                    code: 0
          headers: {}
          x-apifox-name: ok
      security: []
      x-apifox-folder: admin 👨‍💻/parkinglot/v1/Smartpark
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/2493394/apis/api-70867649-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://admin.api.test.domain.cn
    description: 测试环境
security: []

```
