mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update generated swagger file
rake rswag PATTERN="spec/requests/api/*_spec.rb" This file is just a demo so far. The more complete description of the API is: /swagger.yaml
This commit is contained in:
@@ -76,43 +76,51 @@ paths:
|
||||
parameters:
|
||||
- name: X-Spree-Token
|
||||
in: header
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
- name: q[distributor_id_eq]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders for a specific distributor id.
|
||||
schema:
|
||||
type: string
|
||||
- name: q[completed_at_gt]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders completed after a date.
|
||||
schema:
|
||||
type: string
|
||||
- name: q[completed_at_lt]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders completed before a date.
|
||||
schema:
|
||||
type: string
|
||||
- name: q[state_eq]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders by order state, eg 'cart', 'complete'.
|
||||
schema:
|
||||
type: string
|
||||
- name: q[payment_state_eq]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders by order payment_state, eg 'balance_due', 'paid',
|
||||
'failed'.
|
||||
schema:
|
||||
type: string
|
||||
- name: q[email_cont]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders where the order email contains a string.
|
||||
schema:
|
||||
type: string
|
||||
- name: q[order_cycle_id_eq]
|
||||
in: query
|
||||
type: string
|
||||
required: false
|
||||
description: Query orders for a specific order_cycle id.
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: get orders
|
||||
|
||||
Reference in New Issue
Block a user