HTTP stubs for Swift
Usage
Change (or use) the URLSession
of Interceptor
to make requests:
UserRepository.shared.session = Interceptor.session
Add stubs to the Interceptor
:
let user = AuthUser(id: 1, token: "sjzfbsfhjzk")
Interceptor.add(stub: try PathStub(path: "/users/login", object: user, method: "POST"))