[Spring] Postman ์‚ฌ์šฉ - GET(2)

์ง„์ฃผยท2022๋…„ 3์›” 18์ผ
0

Spring

๋ชฉ๋ก ๋ณด๊ธฐ
6/29

๐Ÿฅจ Collection ์ƒ์„ฑํ•˜๊ธฐ

+ ํด๋ฆญ

Save as ํด๋ฆญ

Request name = Get a single book ์ž…๋ ฅ ํ›„ Save

Simple books API์— ๋ฐฉ๊ธˆ ์ƒ์„ฑํ•œ Get a single book collection์ด ์ƒ์„ฑ ๋˜์—ˆ๋‹ค.


books id ์ ‘๊ทผํ•˜๊ธฐ

{{baseUrl}}/books/:booksid ๋ฅผ ์ž…๋ ฅํ•˜๊ณ , VALUE์— 4๋ฅผ ์ž…๋ ฅํ•œ ๋’ค Send๋ฅผ ํด๋ฆญํ•œ๋‹ค.

{{baseUrl}}/books/4์™€ ๋™์ผํ•œ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜จ๋‹ค.


์˜คํƒ€๊ฐ€ ๋‚œ๋‹ค๋ฉด?

{{baseUrl}}/books?/Type=fiction๋ฅผ ์ž…๋ ฅํ•˜๋ฉด fiction๋งŒ ์ฐพ์•„์˜ค๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, query๋ฌธ์ด ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜์ง€ ์•Š์•„ ๋ชจ๋“  ๋ฐ์ดํ„ฐ๊ฐ€ ์ถœ๋ ฅ๋œ๋‹ค.

{{baseUrl}}/books?type=fiction ์œผ๋กœ ์ œ๋Œ€๋กœ ์ž…๋ ฅํ•˜๋ฉด

type์ด fiction์ธ ๋ฐ์ดํ„ฐ๋งŒ ์ฐพ์•„์˜จ๋‹ค.

profile
์ง„์ฃผ์˜ ์ฝ”๋”ฉ์ผ๊ธฐ

0๊ฐœ์˜ ๋Œ“๊ธ€