Commit e2591850 authored by 杨春程's avatar 杨春程

update

parent 34fac26d
......@@ -2,7 +2,7 @@
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: api/settlement/create
title: Backend
description: 下单
version: "1.0.0"
# the domain of the service
......@@ -110,34 +110,17 @@ paths:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/estimates/time:
get:
summary: Time Estimates
description: The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.
/pay/unified/refund:
post:
summary: 统一退款入口
description: 支付宝、微信、applePay、分期 根据订单pyament_channel 区分
parameters:
- name: start_latitude
in: query
description: Latitude component of start location.
required: true
type: number
format: double
- name: start_longitude
- name: order_id
in: query
description: Longitude component of start location.
description: 被退款的订单id.
required: true
type: number
format: double
- name: customer_uuid
in: query
type: string
format: uuid
description: Unique customer identifier to be used for experience customization.
- name: product_id
in: query
type: string
description: Unique identifier representing a specific product for a given latitude & longitude.
tags:
- Estimates
format: integer
responses:
200:
description: An array of products
......@@ -149,43 +132,21 @@ paths:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/me:
get:
summary: User Profile
description: The User Profile endpoint returns information about the Uber user that has authorized with the application.
tags:
- User
responses:
200:
description: Profile information for a user
schema:
$ref: '#/definitions/Profile'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/history:
get:
summary: User Activity
description: The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.
/pay/unified/cashback:
post:
summary: 统一返现入口
description: 支付宝、微信、applePay 分期不支持返现 根据订单pyament_channel 区分
parameters:
- name: offset
in: query
type: integer
format: int32
description: Offset the list of returned results by this amount. Default is zero.
- name: limit
- name: order_id
in: query
type: integer
format: int32
description: Number of items to retrieve. Default is 5, maximum is 100.
tags:
- User
description: 被退款的订单id.
required: true
type: number
responses:
200:
description: History information for the given user
description: Profile information for a user
schema:
$ref: '#/definitions/Activities'
$ref: '#/definitions/Profile'
default:
description: Unexpected error
schema:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment