Last active
November 3, 2017 13:51
-
-
Save 480/cd10cacb886b4f9256cf5c05d5b36bb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
description: "μ¬λ¬ λ§μΌμ νλμ APIλ‘ ν΅ν© μ°λ ν μ μμ΅λλ€. `RESTful API`λ‘ μ 곡λλ©°, `snake_case`λ₯Ό μ¬μ© ν©λλ€." | |
version: 4.0.0 | |
title: PLAYAPI ENGINES API V4 | |
termsOfService: "http://www.playauto.co.kr/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: PLAYAUTO INC (ISC) | |
host: engines.playapi.io | |
basePath: /v4 | |
tags: | |
- name: products | |
description: μν API | |
schemes: | |
- https | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
# ----------------------------------------- | |
# Endpoint μ μ μμ | |
# ----------------------------------------- | |
paths: | |
/products: | |
post: | |
tags: | |
- products | |
summary: λ§μΌμ μνμ λ±λ‘ ν©λλ€. | |
description: "" | |
parameters: | |
- in: body | |
name: products | |
description: λ±λ‘ λ°μ΄ν° | |
required: true | |
schema: | |
type: array | |
items: | |
$ref: "#/definitions/product" | |
responses: | |
200: | |
description: μ²λ¦¬ κ²°κ³Ό | |
400: | |
description: Invalid input | |
500: | |
description: Server Error | |
# ----------------------------------------- | |
# λͺ¨λΈ μ μ μμ | |
# - product | |
# - product_item | |
# - product_ids | |
# - shipping | |
# ----------------------------------------- | |
definitions: | |
product: | |
description: μν λͺ¨λΈ (νμμ μ¬λ¬κ°μ SKU μνμΌλ‘ κ΅¬μ± λ©λλ€.) | |
properties: | |
market_account_uuid: | |
description: λ±λ‘ν νλ§€μ κ³μ κ³ μ ID | |
type: string | |
market_category_id: | |
description: λ§μΌ μΉ΄ν κ³ λ¦¬ ID | |
type: string | |
parent_sku: | |
description: μν κ·Έλ£Ή μ½λ (μ΄ κ°μ `λΆλͺ¨ SKU`λ‘ μ¬μ© λ©λλ€.) | |
type: string | |
parent_title: | |
description: κ·Έλ£Ή λν μνλͺ | |
type: string | |
items: | |
description: SKU λ¨μμ μμ μν λͺ©λ‘ (μ νν μ΅μ μΌλ‘ λ±λ‘) | |
type: array | |
items: | |
$ref: "#/definitions/product_item" | |
main_sku: | |
description: μμ μν λͺ©λ‘ μ€, λΆλͺ¨ μνμμ λνλ‘ μ¬μ©ν μν SKUκ° | |
type: string | |
addon_items: | |
description: SKU λ¨μμ μΆκ° ꡬ맀 μν λͺ©λ‘ (μΌλΆ λ§μΌμ μ§μνμ§ μμ) | |
type: array | |
items: | |
$ref: "#/definitions/product_item" | |
shipping: | |
type: string | |
description: λ°°μ‘ μ 보 ꡬμ±μ€ | |
setform_uuid: | |
description: μΈνΈνΌ κ³ μ ID | |
type: string | |
required: | |
- market_account_uuid | |
- setform_uuid | |
- sku | |
- market_category_id | |
- product_name | |
- product_items | |
- master_sku | |
- shipping | |
# μν sku λ¨μ λͺ¨λΈ | |
product_item: | |
description: SKU λ¨μ μν λͺ¨λΈ | |
properties: | |
sku: | |
description: μν SKU | |
type: string | |
product_ids: | |
$ref: "#/definitions/product_ids" | |
title: | |
description: μνλͺ | |
type: string | |
currency: | |
description: μ μ© ν΅ν | |
type: string | |
enum: [USD,CAD,EUR,KRW,JPY,CNY] | |
standard_price: | |
description: μ μ νλ§€κ° | |
type: double | |
sale: | |
description: μΈμΌ μ€μ | |
properties: | |
start_date: | |
description: μΈμΌ μμμΌ | |
type: datetime | |
end_date: | |
description: μΈμΌ μ’ λ£μΌ | |
type: datetime | |
sale_price: | |
description: μΈμΌ νλ§€κ° | |
type: double | |
promo_tag: | |
description: νλ‘λͺ¨μ | |
properties: | |
promo_type: | |
description: νλ‘λͺ¨μ νμ | |
type: string | |
enum: [SALE, NEW, NEWARRIVAL, WEBONLY, CLEARANCE, LIMITEDOFFER, SPECIALOFFER, SPECIALPURCHASE, ONLYINSTORES] | |
from_data: | |
description: νλ‘λͺ¨μ μμμΌ | |
type: date | |
through_data: | |
description: νλ‘λͺ¨μ μ’ λ£μΌ | |
type: date | |
quantity: | |
description: μ¬κ³ μλ | |
type: integer | |
tax_code: | |
description: > | |
κ³ΌμΈ μ ν μ½λ: | |
* `GEN_TAX` - μΌλ° μν (κ³ΌμΈ) | |
* `GEN_NOTAX` - μΌλ° μν (λΉκ³ΌμΈ) | |
* `BOOKS_GEN` - μΌλ° μμ λ₯ | |
* `BOOKS_RELIG` - μ’ κ΅ μμ λ₯ | |
type: string | |
enum: [GEN_TAX, GEN_NOTAX, BOOKS_GEN, BOOKS_RELIG] | |
condition: | |
description: μν μν | |
properties: | |
condition_type: | |
description: > | |
μν μν: | |
* `NEW` - μ μν | |
* `USED_LIKE_NEW` - μ μν κ°μ μ€κ³ | |
* `USED_VERY_GOOD` - μν μ’μ μ€κ³ | |
* `REFURBISHED` - λ°νλ μν | |
type: string | |
enum: [NEW, USED_LIKE_NEW, USED_VERY_GOOD, REFURBISHED] | |
condition_note: | |
description: μν μν μ½λ©νΈ | |
type: string | |
item_package_quantity: | |
description: νλμ ν¨ν€μ§μ ν¬ν¨ λ λμΌν μ νμ κ°―μ. 10κ°μ μλ§ ν¨ν€μ§μ κ²½μ°, item_package_quantityλ 10μ λλ€. | |
type: integer | |
number_of_items: | |
description: μ νμ ν¬ν¨ λ κ°λ³ νλͺ©μ μλ‘, κ° νλͺ©μ κ°λ³ νλ§€μ©μΌλ‘ ν¬μ₯λμ§ μμ΅λλ€. κ° ν¨ν€μ§μ 3μμ μλ§μ΄ λ€μ΄μλ 10κ° μ§λ¦¬ μνμ κ²½μ° number_of_itemsλ 30μ λλ€. | |
type: integer | |
brand: | |
description: λΈλλ | |
type: string | |
designer: | |
description: λμμ΄λ | |
type: string | |
description_text: | |
description: κΈ΄ μν μκ° Text (HTMLμ μ¬μ©ν μ μλ λ§μΌμ©) | |
type: string | |
description_html: | |
description: κΈ΄ μν μκ° HTML | |
type: string | |
bullet_point: | |
description: μ ν κΈ°λ₯μ λν κ°λ΅ν μ€λͺ | |
type: string | |
item_dimensions: | |
$ref: "#/definitions/dimensions" | |
package_dimensions: | |
$ref: "#/definitions/dimensions" | |
merchant_catalog_code: | |
description: νλ§€μμ μ체 μν μ½λ (SKUμ λ€λ₯Έ κ°μΈ κ²½μ° μ¬μ©) | |
type: string | |
msrp: | |
description: μ μ‘°μ¬μ κΆμ₯ μλΉμκ° | |
type: double | |
max_order_quantity: | |
description: κ³ κ°μ΄ μ£Όλ¬Έν μμλ μ νμ μ΅λ μλ | |
type: integer | |
manufacturer: | |
description: μ μ‘°μ¬ | |
type: string | |
search_terms: | |
description: μ ν κ²μμ© ν€μλ (μ΅λ 5κ°) | |
type: array | |
items: | |
type: string | |
target_audience: | |
description: ꡬ맀 κ°λ₯ λμ μ ν | |
type: string | |
enum: [ADULTS,CHILDREN,MEN,WOMEN] | |
is_gift_wrap_available: | |
description: μ λ¬Ό ν¬μ₯ κ°λ₯ μ¬λΆ | |
type: boolean | |
is_gift_message_available: | |
description: μ λ¬Ό λ©μμ§ μ λ¬ κ°λ₯ μ¬λΆ | |
type: boolean | |
size: | |
description: μ¬μ΄μ¦ κ° | |
type: string | |
color: | |
description: μμ κ° | |
type: string | |
style_name: | |
description: μ€νμΌ κ° | |
type: string | |
model_number: | |
description: λͺ¨λΈλͺ | |
type: string | |
country_of_origin: | |
description: μμ°μ§ κ΅κ° μ½λ (2μλ‘ λ κ΅κ°μ½λ) | |
type: string | |
country_produced_in: | |
description: μμ°μ§ νμλͺ | |
type: string | |
images: | |
description: μ΄λ―Έμ§ URL λͺ©λ‘ (첫λ²μ§Έ urlμ λ©μΈ μ΄λ―Έμ§λ‘ μ¬μ©) | |
type: array | |
items: | |
type: string | |
description: μ΄λ―Έμ§ URL (http/https) | |
required: | |
- sku | |
- title | |
- standard_price | |
- quantity | |
- tax_code | |
- condition | |
- description_text | |
- description_html | |
- manufacturer | |
- size | |
- color | |
- images | |
- country_of_origin | |
product_ids: | |
description: μν νμ€ID μ 보 | |
properties: | |
asin: | |
type: string | |
description: ASIN (Amazon Standard Identification Numbers) | |
upc: | |
type: string | |
description: UPC (Universal Product Code) | |
ean: | |
type: string | |
description: EAN (European Article Number) | |
isbn: | |
type: string | |
description: ISBN (International Standard Book Number) | |
hscode: | |
type: string | |
description: HS CODE (Harmonized System code) | |
dimensions: | |
description: μΉμ μ 보 | |
properties: | |
unit_of_size_measure: | |
description: μ¬μ΄μ¦ λ¨μ | |
enum: [CM,M,IN,FT] | |
type: string | |
width: | |
description: κ°λ‘ | |
type: float | |
length: | |
description: μΈλ‘ | |
type: float | |
height: | |
description: λμ΄ | |
type: float | |
unit_of_weight_measure: | |
description: λ¬΄κ² λ¨μ | |
enum: [LB,KG] | |
type: string | |
weight: | |
description: λ¬΄κ² | |
type: float |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment