8000 Baseadress with subdirectory doesn't use the subdirectory when making requests · Issue #34 · reactiveui/refit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Baseadress with subdirectory doesn't use the subdirectory when making requests #34
Closed
@carl-berg

Description

@carl-berg

I have encountered a problem when base adress that is not the same as the domain:
For instance

    public interface IGitHubApi
    {
        [Get("/{username}")]
        Task<User> GetUser(string userName);
    }

    ....
    var fixture = RestService.For<IGitHubApi>("https://api.github.com/users/");
    var result = fixture.GetUser("octocat"); //will make a request for https://api.github.com/octocat, which is not what i want...

same applies if i create an HttpClient and set the base adress myself...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0