revival-adapter-rxjs
v1.0.0
Published
An rxjs call adapter for revival.
Readme
Rxjs Adapter
An adapter for adapting rxjs types.
Installation and Usage
npm install revival-adapter-rxjsor
yarn add revival-adapter-rxjs- And use them as below:
let revival: Revival = new RevivalBuilder()
.baseUrl("http://test.com/")
.addCallAdapter(RxjsCallAdapter.create())
.build();- Now your api can use as
Observable:
class MyApi {
@GET("user/{id}") loadAccount(@Path id: string) : Observable<Account> {
return DUMMY;
}
}Credits
- Retrofit - Type-safe HTTP client for Android and Java by Square, Inc.
License
MIT License
Copyright (C) 2017-present Vincent Cheung
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.