You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Demo.playground/Pages/Basic.xcplaygroundpage/Contents.swift
+21-19Lines changed: 21 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,12 @@ import Foundation
4
4
5
5
import APIWrapper
6
6
7
-
/*:
8
-
This example uses [Postman Echo](https://www.postman.com/postman/workspace/published-postman-templates/documentation/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65?ctx=documentation) as the sample api.
9
-
10
-
The return value of this api depends on the parameters and will return the parameters, headers and other data as is.
11
-
*/
7
+
// MARK: - BasicAPI
8
+
9
+
/// :
10
+
/// This example uses [Postman Echo](https://www.postman.com/postman/workspace/published-postman-templates/documentation/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65?ctx=documentation) as the sample api.
11
+
///
12
+
/// The return value of this api depends on the parameters and will return the parameters, headers and other data as is.
12
13
13
14
//: To begin by showing some of the most basic uses, look at how the api is defined.
14
15
@@ -26,12 +27,12 @@ enum BasicAPI {
26
27
do{
27
28
// Requests the api and parses the return value of the interface. Note the use of the `$` character.
Copy file name to clipboardExpand all lines: Demo.playground/Pages/Combine.xcplaygroundpage/Contents.swift
+43-42Lines changed: 43 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,17 @@ import ObjectiveC
8
8
9
9
import APIWrapper
10
10
11
-
/*:
12
-
The design goal of `RaAPIWrapper` is to better encapsulate requests and simplify the request process rather than execute them.
13
-
14
-
So we don't provide any methods for request api. You can define your own request methods by referring to the code in the `Demo/Sources/API+Request.swift` file.
15
-
16
-
Here are 2 request wrappers for `Combine`, which are roughly written for reference only:
17
-
*/
18
-
19
-
// For subsequent examples
11
+
// MARK: - CombineAPI
12
+
13
+
/// :
14
+
/// The design goal of `RaAPIWrapper` is to better encapsulate requests and simplify the request process rather than execute them.
15
+
///
16
+
/// So we don't provide any methods for request api.
17
+
/// You can define your own request methods by referring to the code in the `Demo/Sources/API+Request.swift` file.
18
+
///
19
+
/// Here are 2 request wrappers for `Combine`, which are roughly written for reference only:
0 commit comments