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

Re-implement app as FastAPI #60

Merged
merged 131 commits into from
Jan 2, 2025
Merged

Re-implement app as FastAPI #60

merged 131 commits into from
Jan 2, 2025

Conversation

willu47
Copy link
Contributor

@willu47 willu47 commented Dec 18, 2024

Complete reimplementation of the Research Index as a FastAPI web app closing #43 and #48

  • Provides routes to a full OpenAPI at /api as well as recreating the website served over Flask.
  • The api provides docs at /api/docs which provide detailed information about the data structures returned
  • This release includes breaking changes, and requires use of the memgraph database provisioned by research_index_backend >= x.x

Other enhancements include:

  • Pagination to HTML and API routes Add pagination to HTML views #53 using limit and skip parameters. Pagination is added to /outputs, /countries, /author/{id}, /country/{id}, basically wherever there are long lists, or outputs.
  • Refactor of the CRUD/data models separating implementation of the queries to memgraph from the repackaging of the data to meet the requirements of the pydantic schema
  • Consistent use of the CRUD/data models by all routes
  • Improved consistency across the API and queries by re-using tempaltes for pagination, and outputs lists across web-pages

FrancisTembo and others added 30 commits November 17, 2024 10:12
Ignore certain objects for docker container
@willu47 willu47 marked this pull request as ready for review January 2, 2025 07:21
@willu47 willu47 merged commit 4af7342 into main Jan 2, 2025
2 checks passed
@willu47 willu47 deleted the development branch January 2, 2025 14:37
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.

2 participants