๋ฐ˜์‘ํ˜•

Web๊ณต๋ถ€ 1

[Web] RESTful API๋ž€?

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” RESTful API์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. RESTful API (REST API) RESTful API๋ž€ Representational State Transfer(ํ‘œํ˜„ ์ƒํƒœ ์ „์ด) ์•„ํ‚คํ…์ณ๋ฅผ ๋”ฐ๋ฅด๋Š” API์ž…๋‹ˆ๋‹ค. REST๋Š” ์›น ๊ธฐ๋ฐ˜ ์‹œ์Šคํ…œ์—์„œ ๋ฆฌ์†Œ์Šค๋ฅผ ์ •์˜ํ•˜๊ณ , ์ด๋ฅผ HTTP ํ”„๋กœํ† ์ฝœ์„ ํ†ตํ•ด CRUD(Create, Read, Update, Delete) ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์œ„ํ•œ ๊ทœ์น™์ด๋‚˜ ์ œ์•ฝ ์กฐ๊ฑด์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. RESTful API ํŠน์ง• HTTP ํ”„๋กœํ† ์ฝœ์„ ์‚ฌ์šฉํ•˜์—ฌ ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„ ๊ฐ„์˜ ํ†ต์‹ ์„ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. ํด๋ผ์ด์–ธํŠธ๋Š” URL์„ ํ†ตํ•ด ์„œ๋ฒ„์˜ ๋ฆฌ์†Œ์Šค์— ์ ‘๊ทผํ•˜๊ณ , HTTP ๋ฉ”์†Œ๋“œ(GET, POST, PUT, DELETE ๋“ฑ)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•ด๋‹น ๋ฆฌ์†Œ์Šค๋ฅผ ์กฐ์ž‘ํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ..

๋ฐ˜์‘ํ˜•