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

How to invoke GET endpoint using func invoke - boson function #2272

Closed
Vishal1297 opened this issue Apr 16, 2024 · 5 comments
Closed

How to invoke GET endpoint using func invoke - boson function #2272

Vishal1297 opened this issue Apr 16, 2024 · 5 comments

Comments

@Vishal1297
Copy link

Vishal1297 commented Apr 16, 2024

Hi,

I want to invoke go function having only one GET endpoint.
https://github.com/boson-project/functions/blob/main/tutorial.md

Is there any alternatives to boson functions?

func invoke command only allows POST call.

Errror: Bad request

@Vishal1297 Vishal1297 changed the title How to invoke GET endpoint using boson function How to invoke GET endpoint using func invoke - boson function Apr 16, 2024
@matejvasek
Copy link
Contributor

cc @lkingland

@matejvasek
Copy link
Contributor

I think func invoke only supports POST now.

@lkingland
Copy link
Member

lkingland commented Apr 30, 2024

I think your best option is to just use curl.

The function itself should give you a raw request, allowing you to use whichever HTTP method you prefer. func invoke is really just a shortcut for simple examples/tests.

@lkingland
Copy link
Member

Please re-open if this did not answer your question.

@Vishal1297
Copy link
Author

Vishal1297 commented Apr 30, 2024 via email

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

No branches or pull requests

3 participants