Skip to content

Commit

Permalink
[Docs] Update & minor fixes in Migration Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut authored and sunshinejr committed Aug 11, 2017
1 parent 191113f commit aea6e20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/MigrationGuides.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Please follow the appropriate guide below when **upgrading to a new major versio

- Move the `parameters` and `parameterEncoding` to the `task` computed property by using the case `.requestParameters(parameters:,encoding:)`
- Replace the task type `.request` with either `.requestPlain` (if you have no parameters) or `.requestParameters(parameters:,encoding:)`
- There's no `parameters` and `parameterEncoding` on Endpoints any more (e.g. `addingParameters()`), provide them through the `task` on your target instead
- To send URL encoded parameters AND body parameters, you can now use the task type `.requestCompositeParameters(urlParameters:,bodyParameters:,bodyEncoding:)`
- Simplify occurences of task type `.download(.request(destination))` to `.downloadDestination(destination)`
- Simplify occurences of task type `.upload(.file(url))` to `.uploadFile(url)`
- Simplify occurences of task type `.upload(.multipart(data))` to `.uploadMultipart(data)`
- There's no `parameters` and `parameterEncoding` on Endpoints any more (e.g. `addingParameters()`), use the new `task` property instead
- To send URL encoded parameters AND body parameters, you can now use the task type `.requestCompositeParameters(bodyParameters:,bodyEncoding:,urlParameters:)`
- Simplify occurrences of task type `.download(.request(destination))` to `.downloadDestination(destination)`
- Simplify occurrences of task type `.upload(.file(url))` to `.uploadFile(url)`
- Simplify occurrences of task type `.upload(.multipart(data))` to `.uploadMultipart(data)`

0 comments on commit aea6e20

Please sign in to comment.