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

Refit Post Attribute Requires Literal Const #500

Closed
mackgammeter opened this issue Jun 12, 2018 · 2 comments
Closed

Refit Post Attribute Requires Literal Const #500

mackgammeter opened this issue Jun 12, 2018 · 2 comments
Labels

Comments

@mackgammeter
Copy link

Refit doesn't seem to like the constant reference.
[Post(WebApiActionsConsts.ValidateAsync)]

Changing this to a literal string fixed things.
[Post("/api/Invitation/ValidateAsync")]

Is there a particular reason for this?

@shessane
Copy link

shessane commented Jun 12, 2018

Not only Post attribute. All verbs need string literals.
See #263

@bennor
Copy link
Contributor

bennor commented Jan 10, 2019

Closing this as a duplicate of #263

@bennor bennor closed this as completed Jan 10, 2019
@lock lock bot added the outdated label Jun 24, 2019
@lock lock bot locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants