Skip to content

feat: metadata api#2068

Merged
sandsinh merged 4 commits intomainfrom
metadataUI
Apr 1, 2026
Merged

feat: metadata api#2068
sandsinh merged 4 commits intomainfrom
metadataUI

Conversation

@sandsinh
Copy link
Copy Markdown
Contributor

@sandsinh sandsinh commented Mar 30, 2026

Summary

  • Add GET /sites/:siteId/metadata endpoint that returns scraped page metadata (title, description, h1) from S3
  • Reads scrape.json from the site's S3 scrape storage; accepts an optional path query param to target a specific page (defaults to homepage)
  • Includes access control (site:read capability), input validation, and proper error handling (404 for missing data, 500 for S3 failures)

Related Issues

SITES-41731

🤖 Generated with Claude Code

sandsinh and others added 2 commits March 30, 2026 18:15
Add site:read capability for GET /sites/:siteId/metadata route and
add unit test verifying empty string tag values are returned as null.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

This PR will trigger a minor release when merged.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sandsinh sandsinh merged commit e8de8a1 into main Apr 1, 2026
20 checks passed
@sandsinh sandsinh deleted the metadataUI branch April 1, 2026 08:42
solaris007 pushed a commit that referenced this pull request Apr 1, 2026
# [1.394.0](v1.393.0...v1.394.0) (2026-04-01)

### Features

* metadata api ([#2068](#2068)) ([e8de8a1](e8de8a1))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.394.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

ravverma pushed a commit that referenced this pull request Apr 6, 2026
## Summary
- Add `GET /sites/:siteId/metadata` endpoint that returns scraped page
metadata (title, description, h1) from S3
- Reads `scrape.json` from the site's S3 scrape storage; accepts an
optional `path` query param to target a specific page (defaults to
homepage)
- Includes access control (`site:read` capability), input validation,
and proper error handling (404 for missing data, 500 for S3 failures)

## Related Issues
SITES-41731

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ravverma pushed a commit that referenced this pull request Apr 6, 2026
# [1.394.0](v1.393.0...v1.394.0) (2026-04-01)

### Features

* metadata api ([#2068](#2068)) ([e8de8a1](e8de8a1))
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.

3 participants