Alamofire - boostcamp-2020/IssueTracker-13 GitHub Wiki

์ฐธ๊ณ  ์‚ฌ์ดํŠธ raywenderlich

๋„คํŠธ์›Œํฌ์™€ ๊ด€๋ จ๋œ ๊ธฐ๋ณธ ๊ฐœ๋…

HTTP is an application protocol used to transfer data from a server to a client, such as a web browser or an iOS app. HTTP defines several request methods that the client uses to indicate the desired action. For example:

GET: Retrieves data, such as a web page, but doesnโ€™t alter any data on the server.

HEAD: Identical to GET, but only sends back the headers and not the actual data.

POST: Sends data to the server. Use this, for example, when filling a form and clicking submit.

PUT: Sends data to the specific location provided. Use this, for example, when updating a userโ€™s profile.

DELETE: Deletes data from the specific location provided

REST, or REpresentational State Transfer, is a set of rules for designing consistent web APIs. REST has several architecture rules that enforce standards like not persisting states across requests, making requests cacheable and providing uniform interfaces. This makes it easy for app developers to integrate the API into their apps without having to track the state of data across requests.

Alamofire์„ ์‚ฌ์šฉํ•œ ์ด์œ ?

์ฒ˜์Œ์—๋Š” URLSession๋ฅผ ์ด์šฉํ•˜๋ ค ํ–ˆ๋Š”๋ฐ, networking๊ด€๋ จํ•ด์„œ ํˆฌ์žํ•  ์‹œ๊ฐ„์ด ๋งŽ์ง€ ์•Š์•„์„œ ๊ฐ€์žฅ ์ธ๊ธฐ์žˆ๊ณ , ์‹ค์ œ๋กœ๋„ ๋งŽ์ด ์“ฐ๋Š” Alamofire๋ฅผ ์„ ํƒํ–ˆ์Šต๋‹ˆ๋‹ค Json ํŒŒ์‹ฑ ๋ถ€๋ถ„๋˜ํ•œ codable์„ ์ด์šฉํ•˜์—ฌ ๊ฐ„ํŽธํ•˜๊ฒŒ ์ง„ํ–‰ ํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.