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: SummerRestSample/Assets/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,18 @@ To use the generated requests, there are some notable folders under the Asset fo
6
6
-[Configures/SummerRest](Assets/Configures/SummerRest): Contains the necessary items for the plugin. Please do not modify them manually
7
7
-[Scripts/Model](Assets/Scripts/Model): Request and response data containers. Because of using [Unity Serialization](https://docs.unity3d.com/Manual/script-Serialization.html), please remember to use `System.Serializable` attribute (and [SerializeField](https://docs.unity3d.com/ScriptReference/SerializeField.html) with private fields)
8
8
-[Scripts/Customs](Assets/Scripts/Customs): Classes under this folder demonstrate how to embed your implementations into the working flow of the plugin.
9
-
- Here we create 2 customized classes [LogDataSerializer](Assets/Scripts/Customs/LogDataSerializer.cs) and [LogSecretRepository](Assets/Scripts/Customs/LogSecretRepository.cs) to log operations before sending them to the default implementations
9
+
- Here we create 2 custom classes [LogDataSerializer](Assets/Scripts/Customs/LogDataSerializer.cs) and [LogSecretRepository](Assets/Scripts/Customs/LogSecretRepository.cs) to log operations before sending them to the default implementations
10
10
- In the plugin window, we select the classes in the `Advanced settings` section
11
11
-[Scripts/Auth](Assets/Scripts/Auth): Shows how to implement a custom auth appender
12
-
- We create a customized class [DummyJsonApiAuthAppender](Assets/Scripts/Auth/DummyJsonApiAuthAppender.cs) appending a header pair `Authorization:<access-token>`
12
+
- We create a custom class [DummyJsonApiAuthAppender](Assets/Scripts/Auth/DummyJsonApiAuthAppender.cs) appending a header pair `Authorization:<access-token>`
13
13
- Create a respective auth container with appender type is the class we've just created
14
-
- In the `GetUser` request, we points the auth container
14
+
- In the `GetUser` request, we point to the auth container
15
15
-[Scripts/Managers](Assets/Scripts/Managers)
16
16
1.[SampleCoroutineManager](Scripts/Managers/SampleCoroutineManager.cs) shows how to call HTTP endpoints by leveraging `Coroutine` system
17
17
2.[SampleTaskManager](Scripts/Managers/SampleTaskManager.cs) shows how to call HTTP endpoints asynchronously by using [UniTask](https://github.com/Cysharp/UniTask). To enable the code belonging to this section, you need to
2. Add **SUMMER_REST_TASK**[Scripting Define Symbol](https://docs.unity3d.com/Manual/CustomScriptingSymbols.html) (briefly, you may find it at `Player settings` > `Other settings` > `Script compilation`)
20
20

21
-
3.In the end part of the manager classes, you will figure out to call independent requests which are not configured in the window
21
+
3.At the end of the manager classes, you will figure out to call independent requests which are not configured in the window
22
22
23
23
[summer-rest-generated.RestSourceGenerator](Configures/summer-rest-generated.RestSourceGenerator.additionalfile) is an additional file for generating code, please click on `Generate source to` button to refresh the file and its associated source everytime you want to sync the plugin configures with your project
0 commit comments