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

Create JSON endpoints needed for migration source in Hugo #8254

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

nick-mon1
Copy link
Contributor

@nick-mon1 nick-mon1 commented Dec 17, 2024

Summary

JSON endpoints for content types.

Note

See endpoint-scripts/README.md for instructions and notes.

  • mocks/ are the expected output for each content type
  • endpoints/ is the actual json output, test against mocks json.
  • run locally or on federalist and visit the below urls for each content type for the json endpoint

Endpoints

content json serializer local endpoint federalist endpoint notes
authors layouts/shortcodes/api-authors.html authors authors valid
news layouts/news/list.json.json news news valid
short post layouts/shortcodes/api-shortposts.html short posts shortposts valid
events layouts/events/list.json.json events events valid
communities layouts/communities/list.json.json communities communities valid
guides layouts/_default/list.json.json guides guides wip
resources layouts/resources/list.json.json resources resources valid
topics layouts/shortcodes/api-topics.html topics topics wip
sources layouts/sources/list.json.json sources sources valid
services default/list.json.json yes n/a
redirects layouts/redirects/list.json.json wip

Copy link

🔍 Preview in Federalist

@nick-mon1 nick-mon1 self-assigned this Dec 17, 2024
@nick-mon1 nick-mon1 requested a review from mattsqd January 3, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant