Skip to content

Instantly share code, notes, and snippets.

@Meldiron
Created June 24, 2018 14:28
Show Gist options
  • Save Meldiron/b5fdd1e39850ca111fa5314950c8c2e3 to your computer and use it in GitHub Desktop.
Save Meldiron/b5fdd1e39850ca111fa5314950c8c2e3 to your computer and use it in GitHub Desktop.
x-swagger-router-controller: products_ctrl
get:
tags:
- Catalog
summary: Get products object
description: You can filter list by currency, category and language
operationId: searchProducts
parameters:
- name: lang_id
in: query
description: ID of the language (for example "sk")
required: false
default: sk
type: string
- name: category_id
in: query
description: ID of the category (for example 3)
required: false
type: number
- name: currency_id
in: query
description: ID of the currency (for example EUR)
required: false
default: EUR
type: string
responses:
"200":
description: Success
schema:
type: object
required:
- products
properties:
products:
type: array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment