# 获取服务端下载地址(需登录)

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /download/server/{server}/{version}:
    get:
      summary: 获取服务端下载地址(需登录)
      deprecated: false
      description: |-
        获取特定类型和版本的服务端下载地址
        需要传入MSL用户中心的用户Access Token，不传入则为默认下载源
        目前两者均一致
      tags:
        - 服务端下载源
      parameters:
        - name: server
          in: path
          description: 服务端类型
          required: true
          example: pufferfishplus
          schema:
            type: string
        - name: version
          in: path
          description: MC版本
          required: true
          example: '1.20'
          schema:
            type: string
        - name: build
          in: query
          description: ''
          required: false
          example: latest
          schema:
            type: string
        - name: User-Agent
          in: header
          description: ''
          example: MSL API Test
          schema:
            type: string
            default: MSL API Test
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      url:
                        type: string
                      sha256:
                        type: string
                        description: 仅当服务端存在MSL镜像源时才会返回
                    required:
                      - url
                    x-apifox-orders:
                      - url
                      - sha256
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: ''
                data:
                  url: >-
                    https://api.mslmc.cn/v2/files/pufferfishplus/pufferfishplus-1.20-40.jar
                  sha256: >-
                    a73684f3d4ce29c2714921fa339b130b977ad8dedefdf33f46544fa514a6ea87
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 服务端下载源
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/7956474/apis/api-429587272-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers: []
security: []

```
