Skip to content

API Document

Bae-chaegyeom edited this page Dec 19, 2020 · 32 revisions

API Document

Wine

와인에 대한 정보를 요청합니다.

HTTP Request

https://buenosvinosserver.ga/wine?name={wine_name}&sweet_min={sweet_min}&sweet_max={sweet_max}&acidic_min={acidic_min}&acidic_max={acidic_max}&body_min={body_min}&body_max={body_max}&type[]={type}&rating={rating}&country[]={country}&food[]={food1}&food[]={food2}

Request parameters

In the request URL, provide the following query parameters with values.

Parameter Type Description
id integer 와인의PK ID를 입력합니다
name string 찾고자 하는 와인의 이름을 입력합니다
sweet_min integer 필터링 하고자 하는 당도의 최솟값을 입력합니다
sweet_max integer 필터링 하고자 하는 당도의 최댓값을 입력합니다
acidic_min integer 필터링 하고자 하는 산도의 최솟값을 입력합니다
acidic_max integer 필터링 하고자 하는 산도의 최댓값을 입력합니다
body_min integer 필터링 하고자 하는 바디감의 최솟값을 입력합니다
body_max integer 필터링 하고자 하는 바디감의 최댓값을 입력합니다
type[] array 와인의 타입을 입력합니다 ex)레드, 화이트, 스파클링, 로제
rating number 별점을 입력합니다(1자릿수의 소수) ex) 2.0
country[] array 국가를 입력합니다
food[] array 안주를 지정합니다

Optional request headers

Name Value

Request body

Do not supply a request body with this method.

Example

Request
Response

Remarks

image image

image image

image image

image image

image image

image image

image image

image image

image image

image image

Clone this wiki locally