ar.kalmykov created page: gcd and math authored by Artem Kalmykov's avatar Artem Kalmykov
...@@ -6,12 +6,14 @@ http://www.json.org ...@@ -6,12 +6,14 @@ http://www.json.org
https://github.com/Alamofire/Alamofire https://github.com/Alamofire/Alamofire
[tutorial.json](/uploads/ffffec34fa4a727922bb1e09cc24b21d/tutorial.json)
## You should do the following: ## You should do the following:
1. Read about HTTP requests. 1. Read about HTTP requests.
2. Read about JSON. 2. Read about JSON.
3. Install Google Chrome and Postman extension. 3. Install Google Chrome and Postman extension.
4. Execute `GET` request with `http://gitlab.faifly.com/ios-general/ios-tutorial/uploads/75727472327ca7b210bb1d904438a2d7/tutorial.json` URL. You should see JSON with a list of organizations. 4. Execute `GET` request with `http://gitlab.faifly.com/ios-general/ios-tutorial/uploads/ffffec34fa4a727922bb1e09cc24b21d/tutorial.json` URL. You should see JSON with a list of organizations.
5. Create a new branch from develop called feature/basic_networking. 5. Create a new branch from develop called feature/basic_networking.
6. Create a new class called `RequestManager`, which is subclass of `NSObject`. 6. Create a new class called `RequestManager`, which is subclass of `NSObject`.
7. Implement `fetchOrganizations` static method, which accepts one argument - a closure (block) with a single parameter - `[String : AnyObject]`. It should send a `GET` request to a URL specified above and return the response with the help of the closure. 7. Implement `fetchOrganizations` static method, which accepts one argument - a closure (block) with a single parameter - `[String : AnyObject]`. It should send a `GET` request to a URL specified above and return the response with the help of the closure.
... ...
......