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

Add POST endpoints for excerpt and title generation #525

Merged
merged 5 commits into from
Jul 17, 2023

Conversation

phpbits
Copy link
Contributor

@phpbits phpbits commented Jul 6, 2023

Description of the Change

Add POST endpoint to both Generate Titles and Generate Excerpt functionality. The endpoints accepts the following:

id : The post ID. Required.
post_content: The current post content.

Closes #501

How to test the Change

Edit a post and use the Generate Titles and Generate Excerpt options.

Credits

Props @phpbits

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@phpbits phpbits self-assigned this Jul 6, 2023
@phpbits phpbits marked this pull request as ready for review July 6, 2023 15:54
@phpbits phpbits requested review from a team, dkotter and jeffpaul as code owners July 6, 2023 15:54
@phpbits
Copy link
Contributor Author

phpbits commented Jul 6, 2023

@dkotter @jeffpaul This is now ready for code review. Thanks!

@jeffpaul jeffpaul added this to the 2.2.3 milestone Jul 6, 2023
@jeffpaul jeffpaul removed their request for review July 6, 2023 15:59
@dkotter dkotter modified the milestones: 2.2.3, 2.3.0 Jul 6, 2023
…e separate. Rename from post_content to just contnet. Fix an issue where excerpts couldn't be overwritten
@dkotter dkotter merged commit aa63866 into develop Jul 17, 2023
@dkotter dkotter deleted the feature/post-rest-endpoint branch July 17, 2023 21:07
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.

Add POST endpoints for excerpt and title generation
3 participants