REST-API

An API is a set of definitions and protocols for building and integrating application software

  • API(application programming interface)

    • ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ํ†ตํ•ฉํ•˜๊ณ  ๊ตฌ์ถ•ํ•˜๊ธฐ ์œ„ํ•œ ์ •์˜์˜ ์ง‘ํ•ฉ.

    • ๋ฉ”์นด๋‹ˆ์ฆ˜์ธ๋ฐ, ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์ด๋‚˜ ์„œ๋น„์Šค๊ฐ€ ๋‹ค๋ฅธ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋‚˜ ์„œ๋น„์Šค ๋ฆฌ์†Œ์Šค์— ์ ‘๊ทผํ•˜๋„๋ก ํ•ด์ฃผ๋Š” ๊ฒƒ.

  • Java์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํŠน์ • ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ API ์นญํ•˜๊ธฐ๋„ํ•˜๊ณ , ์˜ˆ๋ฅผ ๋“ค๋ฉด ๋ฏธ์„ธ๋จผ์ง€ ๋†๋„๋ฅผ ์•Œ ์ˆ˜ ์žˆ๋„๋ก ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ด์ฃผ๋Š” ์„œ๋น„์Šค (OPEN API) ๋„ API๋ผ ๋ถ€๋ฅด๊ธฐ๋„ ํ•˜๋Š” ๋“ฏ.

    • ๊ต‰์žฅํžˆ ๊ด‘๋ฒ”์œ„ํ•œ ๋ฒ”์œ„๋กœ ์ƒ๊ฐ๋จ.

  • ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ฑ์˜ ์ฝ”๋“œ๋„ API, ํŠน์ • EndPoint๋ฅผ ํ˜ธ์ถœํ•ด์„œ ์‘๋‹ต์„ ๋ฐ›๋Š” ์„œ๋น„์Šค๋„ API๋ผ๊ณ  ํ•จ.

REST is a set of architectural constraints, not a protocol or a standard. API developers can implement REST in a variety of ways.

  • REST(Representational State Transfer)๋Š” ํ”„๋กœํ† ์ฝœ์ด๋‚˜ ํ‘œ์ค€์€ ์•„๋‹˜. ๊ทธ๋ ‡์ง€๋งŒ ์•„ํ‚คํ…์ฒ˜์˜ ์ œ์•ฝ์˜ ์ง‘ํ•ฉ์ž„

  • ๊ฐœ๋ฐœ์ž๊ฐ€ ๋‹ค์–‘ํ•œ ๋ฐฉ์‹์œผ๋กœ REST๋ผ๋Š” ๋ฐฉ์‹์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๋‹ค๋Š”๊ฒŒ ํŠน์ง•์ž„.

์ •๋ฆฌ

  • ๋ณดํ†ต ํด๋ผ๋ฆฌ์–ธํŠธ-์„œ๋ฒ„ ์•„ํ‚คํ…์ณ์—์„œ ์ธํ„ฐ๋„ท์„ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฅผ ์ฃผ๊ณ  ๋ฐ›๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ์ธํ„ฐํŽ˜์ด์Šค (๊ทœ์น™) ์„ ๋งํ•จ.

  • ํ”„๋กœํ† ์ฝœ์ด๋‚˜ ์–ด๋– ํ•œ ํ‘œ์ค€์€ ์•„๋‹ˆ์ง€๋งŒ, ํ†ต์šฉ๋˜๋Š” ๊ทœ์น™, ์ œ์•ฝ ์ •๋„๋ผ ๋งํ•  ์ˆ˜ ์žˆ์„๋“ฏ.

์ฐธ๊ณ 

  • https://www.redhat.com/en/topics/api/what-is-a-rest-api

  • https://www.ibm.com/topics/rest-apis

Last updated