Skip to content

wellcomecollection/content-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,389 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content API

These are the services that back our Content API. The Content API exposes our non-catalogue content. There are endpoints for articles, events, and all (where all includes articles, books, events, exhibitions, exhibition texts, exhibition highlight tours (BSL), exhibition highlight tours (audio), pages, projects, seasons, and visual stories).

Architecture diagram

Services

  • /pipeline: runs on a schedule, queries for updated content, transforms it and puts it into an index in the content ES cluster.
  • /api: queries the Elasticsearch index
  • /webhook: a Lambda handler exposed via a function URL for handling Prismic webhook events and publishing them to a EventBridge bus
  • /unpublisher: receives events published by the webhook, extracts document IDs from them and removes them from the ES index.

Developing

  • Deployment is all done in CI, see .buildkite/pipeline.yml
  • husky will set up a pre-commit hook for autoformatting when you first install dependencies

About

📖 The API + ETL pipeline for searching the Wellcome Collection Prismic Repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors