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
{{ message }}
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,17 @@
1
1
# Contributing
2
2
3
-
Bug reports and pull requests are welcome on GitHub at https://github.com/JamitLabs/MungoHealer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
3
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Flinesoft/Microya. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
4
4
5
5
## Getting Started
6
6
7
-
This section will tell you how you can get started contributing to MungoHealer.
7
+
This section will tell you how you can get started contributing to Microya.
8
8
9
9
### Prerequisites
10
10
11
11
Before you start developing, please make sure you have the following tools installed on your machine:
### Step 3: Calling your API endpoint with the result type
185
+
### Step 3: Calling your API endpoint with the Result type
169
186
170
187
Call an API endpoint providing a `Decodable` type of the expected result (if any) by using this method pre-implemented in the `JsonApi` protocol:
171
188
@@ -191,15 +208,23 @@ Note that you can also use the throwing `get()` function of Swift 5's `Result` t
191
208
192
209
```Swift
193
210
let endpoint = MicrosoftTranslatorApi.translate(texts: ["Test"], from: .english, to: [.german, .japanese, .turkish])
194
-
let translationsByLanguage =try endpoint.request(type: [String:String].self)
211
+
let translationsByLanguage =try endpoint.request(type: [String:String].self).get()
195
212
// use the already decoded `[String: String]` result
196
213
```
197
214
198
-
There's even useful functional methods defines on the `Results` type like `map()`, `flatMap()` or `mapError()` and `flatMapError()`. See the "Transforming Result" section in [this](https://www.hackingwithswift.com/articles/161/how-to-use-result-in-swift) article for more information.
215
+
There's even useful functional methods defined on the `Result` type like `map()`, `flatMap()` or `mapError()` and `flatMapError()`. See the "Transforming Result" section in [this](https://www.hackingwithswift.com/articles/161/how-to-use-result-in-swift) article for more information.
216
+
217
+
218
+
## Donation
219
+
220
+
Microya was brought to you by [Cihat Gündüz](https://github.com/Jeehut) in his free time. If you want to thank me and support the development of this project, please **make a small donation on [PayPal](https://paypal.me/Dschee/5EUR)**. In case you also like my other [open source contributions](https://github.com/Flinesoft) and [articles](https://medium.com/@Jeehut), please consider motivating me by **becoming a sponsor on [GitHub](https://github.com/sponsors/Jeehut)** or a **patron on [Patreon](https://www.patreon.com/Jeehut)**.
221
+
222
+
Thank you very much for any donation, it really helps out a lot! 💯
223
+
199
224
200
225
## Contributing
201
226
202
-
See the file [CONTRIBUTING.md](https://github.com/JamitLabs/MungoHealer/blob/stable/CONTRIBUTING.md).
227
+
See the file [CONTRIBUTING.md](https://github.com/Flinesoft/Microya/blob/main/CONTRIBUTING.md).
0 commit comments