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 can I do api request? #1073

Closed
2 tasks
antonkri97 opened this issue May 2, 2024 · 3 comments
Closed
2 tasks

How can I do api request? #1073

antonkri97 opened this issue May 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@antonkri97
Copy link

Please provide the environment you discovered this bug in.

https://stackblitz.com/edit/github-blmgr2?file=src%2Fapp%2Fpages%2Findex.page.ts

Which area/package is the issue in?

create-analog

Description

Hi everyone!

I tried to call the very basic API using filesystem-based approach. But no matter which URL I try, nothing works. Tell me what I'm doing wrong

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
@antonkri97 antonkri97 added the bug Something isn't working label May 2, 2024
@brandonroberts
Copy link
Member

The API server isn't available in StackBlitz, but when you run it locally it will work correctly. Just use the full URL, such as http://localhost:5173/api/v1/hello

@antonkri97
Copy link
Author

Yes, now it finally works, thanks!

I'm not sure, but it wasn't the most obvious detail to me. Maybe we can add this detail to the documentation, what do you think?

@brandonroberts
Copy link
Member

Sure. A guide on general data fetching patterns would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants