Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

[Question] All requests are GET, what about Post? #102

@amrro

Description

@amrro

TL;DR: How to use POSTinstead of GET?

Thanks for your effort, really great learning experience browsing your code. But I have small question.

What I've noticed that all requests in GithubService are GET type. By using the abstract class NetworkBoundResource to load each object by overriding createCall() in its Repository, like UserRepository#loadUser(String login).

In Post, I update data remotely on server which I might have instance of it locally with Room, What/How to update Room depending on the API? Is the same class, NetworkBoundResource, is applicable with POST requests? What is the best scenario in this case?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions