Skip to content

docs: document rest: true config.yaml prerequisite for automatic REST APIs#33

Merged
dawsontoth merged 1 commit into
mainfrom
docs/rest-config-prerequisite
May 21, 2026
Merged

docs: document rest: true config.yaml prerequisite for automatic REST APIs#33
dawsontoth merged 1 commit into
mainfrom
docs/rest-config-prerequisite

Conversation

@Ethan-Arrowood
Copy link
Copy Markdown
Member

Summary

  • Adds rest: true in config.yaml as step 1 in automatic-apis.md, with a clear warning that @exported tables won't respond to HTTP requests without it
  • Adds an Important callout to the same effect in adding-tables-with-schemas.md (where agents first encounter @table @export)
  • Adds the same callout to the corresponding section in AGENTS.md

Motivation

An agent using these skills failed to debug missing REST endpoints because the docs implied that adding @table @export to a schema was sufficient to enable REST — but rest: true in config.yaml is also required. This change makes that prerequisite explicit and hard to miss.

Test plan

  • Verify automatic-apis.md lists rest: true config as the first step before schema setup
  • Verify adding-tables-with-schemas.md and AGENTS.md both call out the config.yaml requirement alongside @table @export

🤖 Generated with Claude Code

Agents were failing to debug missing REST endpoints because the docs
didn't mention that `rest: true` must be set in `config.yaml` for
`@export`ed tables to respond to HTTP requests. Added the requirement
as the first step in automatic-apis.md and as a callout wherever
`@table @export` is introduced.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3. **Use Automatic WebSockets**: Connect to `wss://your-harper-instance/{TableName}` to receive events whenever updates are made to that table. This is the easiest way to add real-time capabilities. (Use `ws://` for local development without SSL). For more complex needs, see [Real-time Apps](real-time-apps.md).
4. **Apply Filtering and Querying**: Use query parameters with `GET /{TableName}/` and `DELETE /{TableName}/`. See the [Querying REST APIs](querying-rest-apis.md) skill for advanced details.
5. **Customize if Needed**: If the automatic APIs don't meet your requirements, [customize the resources](./custom-resources.md).
1. **Enable REST in `config.yaml`**: REST endpoints are **not active by default**. You must explicitly enable them:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on what you mean by default, https://github.com/HarperFast/create-harper/blob/main/template-react/config.yaml -- all of the core templates have it set to true.

@dawsontoth dawsontoth merged commit 8a71851 into main May 21, 2026
2 checks passed
@dawsontoth dawsontoth deleted the docs/rest-config-prerequisite branch May 21, 2026 16:20
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.4.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants