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

Simplify backend (Define custom endpoints for blogpost subject type + foundation bits) #87

Merged
merged 13 commits into from
Nov 5, 2024

Conversation

ashfame
Copy link
Member

@ashfame ashfame commented Oct 26, 2024

This PR is the successor of #85 in which after simplifying the types, we simplify the backend by defining our own custom endpoints with flat object structures rather than fiddling with extending the existing one with more fields and some meta fields.

This way, all WordPress-y bits are abstracted away from the frontend and its contained on the PHP side. This would also remove some of the PHP code and simplifies things once the frontend switches over to use the new custom endpoints.

But before it does, we need to define the api, which is being done in #86 It would also warrant some more changes in our custom endpoints built in this PR.

Finally, since its hard to define a finish line for this PR with other changes being pending, I think just having the custom endpoints up is what I will strive to have as the goal for this PR.

@ashfame ashfame self-assigned this Oct 26, 2024
@ashfame ashfame requested a review from psrpinto November 5, 2024 10:38
@ashfame ashfame marked this pull request as ready for review November 5, 2024 10:38
@ashfame ashfame changed the title Simplify backend (WIP) Simplify backend (Define custom endpoints for blogpost subject type + foundation bits) Nov 5, 2024
Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

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

Looks good, nicely done 👌

src/plugin/class-engine.php Outdated Show resolved Hide resolved
@ashfame ashfame merged commit 142b4e3 into trunk Nov 5, 2024
3 checks passed
@ashfame ashfame deleted the simplify_backend branch November 5, 2024 11:35
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