Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sloy/retrofit-dynamic-endpoint-sample
Quick app to demonstrate dynamic endpoints in retrofit
https://github.com/sloy/retrofit-dynamic-endpoint-sample
Last synced: 9 days ago
JSON representation
Quick app to demonstrate dynamic endpoints in retrofit
- Host: GitHub
- URL: https://github.com/sloy/retrofit-dynamic-endpoint-sample
- Owner: Sloy
- Created: 2016-01-13T20:58:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T07:34:31.000Z (about 9 years ago)
- Last Synced: 2024-12-03T07:14:25.939Z (2 months ago)
- Language: Java
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Retrofit Dynamic Endpoint Sample
I just wanted to quickly test if Retrofit handles a mutable endpoint whose url can be modified. Since it works fine, I'll just share it here too.### The magic
```java
public class MutableEndpoint implements Endpoint {private String url;
public void setUrl(String url) {
this.url = url;
}@Override
public String getUrl() {
return url;
}@Override
public String getName() {
return url;
}
}
```