Skip to content

docs: show how to fetch data from an existing REST API - #3760

Open
wozhenbang2004 wants to merge 1 commit into
vikejs:mainfrom
wozhenbang2004:docs-rest-api-data-fetching
Open

wozhenbang2004 wants to merge 1 commit into
vikejs:mainfrom
wozhenbang2004:docs-rest-api-data-fetching

Conversation

@wozhenbang2004

Copy link
Copy Markdown

Refs #2110.

Show how to query a separately running REST API from +data, configure its origin with the server-side MOVIES_API_URL, and read the returned movie in useData().

pnpm run build and pnpm run docs:lint passed. The exact snippets rendered the response in a Vike + React SSR app backed by a local HTTP API.

This branch has not been deployed

No deployments
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 this pull request may close these issues.

1 participant