Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Oct 2, 2015
1 parent 3920d5d commit 652b57d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ networking.POST("/post", params: ["username":"jameson", "password":"password"])
}
```

### Stubbing POST

```swift
let story = ["id" : 47333, "title" : "Site Design: Aquest"]
Networking.stubPOST("/story", response: story)

let networking = Networking(baseURL: "https://api-news.layervault.com/api/v2")
networking.POST("/story", params: ["username":"jameson", "password":"password"]) { JSON, error in
if let JSON = JSON {
// Story with id: 47333
}
}
```

## Installation

**Networking** is available through [CocoaPods](http://cocoapods.org). To install
Expand Down

0 comments on commit 652b57d

Please sign in to comment.