Merge branch 'master' into feature/query_params
This commit is contained in:
commit
bd0bc54fdd
|
|
@ -1,9 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
### 0.9.24
|
||||
### 0.9.25
|
||||
- **Add**: `queryItems` parameter for `ApiRequestParameters`.
|
||||
- **Add**: `asQueryItems` method for `Encodable` that converts model to query items array.
|
||||
|
||||
### 0.9.24
|
||||
- **Fix**: Make `ApiRequestParameters` properties public.
|
||||
|
||||
### 0.9.23
|
||||
- **Add**: Rounding for `Decimal`.
|
||||
- **Add**: `doubleValue` property for `Decimal`.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.24</string>
|
||||
<string>0.9.25</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.24</string>
|
||||
<string>0.9.25</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.24</string>
|
||||
<string>0.9.25</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
|||
|
|
@ -31,17 +31,17 @@ public struct ApiRequestParameters {
|
|||
///
|
||||
/// - dictionary: dictionary parameter
|
||||
/// - array: array parameter
|
||||
enum RequestParameters {
|
||||
public enum RequestParameters {
|
||||
case dictionary(Parameters)
|
||||
case array([Any])
|
||||
}
|
||||
|
||||
let method: HTTPMethod
|
||||
let url: URLConvertible
|
||||
let parameters: RequestParameters?
|
||||
let queryItems: [URLQueryItem]?
|
||||
let encoding: ParameterEncoding
|
||||
let headers: HTTPHeaders?
|
||||
public let url: URLConvertible
|
||||
public let parameters: RequestParameters?
|
||||
public let queryItems: [URLQueryItem]?
|
||||
public let method: HTTPMethod
|
||||
public let encoding: ParameterEncoding
|
||||
public let headers: HTTPHeaders?
|
||||
|
||||
public init(url: URLConvertible,
|
||||
method: HTTPMethod = .get,
|
||||
|
|
|
|||
Loading…
Reference in New Issue