Skip to content

Commit 69e9f02

Browse files
authored
Update README.md
1 parent d22154c commit 69e9f02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ APIRequest<ResponseModel>("endpoint", payload: payloadModel)
5757
### How to send DELETE request
5858

5959
```swift
60-
APIRequestWithoutResult("endpoint")
60+
APIRequest<Nothing>("endpoint")
6161
.method(.delete)
6262
.desiredStatusCode(.noContent) //204 NO CONTENT
6363
.onSuccess { _ in
@@ -242,7 +242,7 @@ extension TaskController {
242242
```swift
243243
import CodyFire
244244
extension TaskController {
245-
static func delete(id: UUID) -> APIRequestWithoutResult {
245+
static func delete(id: UUID) -> APIRequest<Nothing> {
246246
return APIRequest("post/" + id.uuidString).method(.delete).desiredStatusCode(.noContent)
247247
}
248248
}
@@ -444,7 +444,7 @@ All done, now you're able to easily switch environments!
444444
#### How to execute request without onSuccess clojure?
445445
Sometimes useful for DELETE or PATCH requests
446446
```swift
447-
APIRequestWithoutAnything("endpoint").method(.delete).execute()
447+
APIRequest<Nothing>("endpoint").method(.delete).execute()
448448
```
449449

450450
#### How to cancel request?

0 commit comments

Comments
 (0)