Newer
Older
CosmosSwaggerYAML / shop.yaml
swagger: '2.0'
info:
  description: これはCosmosのshopAPIです。
  version: 1.0.0
  title: Shop API
  termsOfService: 'http://swagger.io/terms/'
host: nitta-lab-www.is.konan-u.ac.jp
basePath: /cosmos
schemes:
  - https
  - http
paths:
  /shops:
    get:
      summary: 緯度と経度
      description: 現在地を取得します。
      consumes:
        - multipart/form-data
      parameters:
        - name: longitude
          in: query
          description: 中心緯度
          required: true
          type: integer
        - name: latitude
          in: query
          description: 中心経度
          required: true
          type: integer
        - name: longitudeRange
          in: query
          description: 緯度範囲
          required: true
          type: integer
        - name: latitudeRange
          in: query
          description: 経度範囲
          required: true
          type: integer
        - name: shop
          in: query
          description: 業種コード
          required: false
          type: integer
      responses:
        '200':
          description: 成功時のレスポンス
          schema:
            type: object
            properties:
              request:
                type: object
                example:
                  location:
                    longitude: '1234'
                    latitude: '1234'