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

Add macros for custom client/server interfaces #231

Closed
sfackler opened this issue Feb 2, 2023 · 0 comments · Fixed by #248
Closed

Add macros for custom client/server interfaces #231

sfackler opened this issue Feb 2, 2023 · 0 comments · Fixed by #248

Comments

@sfackler
Copy link
Member

sfackler commented Feb 2, 2023

Some services need to interact with or expose APIs that cannot be defined in Conjure. Currently this requires a bunch of manual glue that we should be able to write for the service with a macro analagous to dialogue-annotations-processor:

#[service]
trait MyCustomService {
    #[endpoint(method = GET, path = "/foo/{bar}")]
    fn foo(&self, bar: i32) -> Result<(), Error>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant