Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST: Allow multipart RESTName #200

Closed
ddworak opened this issue Jun 14, 2018 · 2 comments
Closed

REST: Allow multipart RESTName #200

ddworak opened this issue Jun 14, 2018 · 2 comments
Milestone

Comments

@ddworak
Copy link
Member

ddworak commented Jun 14, 2018

Consider:

@REST
trait Api {
  @RESTName("auth") def auth: AuthApi

  @RESTName("app/v3") def secure(token: Token): SecureApi
}

This is currently impossible due to URLEncoder.encode on all RESTNames and AFAIK requires nesting the interface.

@Starzu Starzu added this to the 0.8.0 milestone Jun 22, 2018
@ddworak
Copy link
Member Author

ddworak commented Oct 25, 2018

@ghik: issue to be closed with #225, right?

@ghik
Copy link
Member

ghik commented Oct 25, 2018

Yes, new REST framework lets you specify arbitrary path fragments, including empty ones and also supports intermixing path parameters with fixed path fragments.

@Starzu Starzu closed this as completed Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants