Skip to content

add post creation via the API#12

Open
Xe wants to merge 1 commit intomasterfrom
post-creation
Open

add post creation via the API#12
Xe wants to merge 1 commit intomasterfrom
post-creation

Conversation

@Xe
Copy link
Copy Markdown
Member

@Xe Xe commented Jul 20, 2020

Before you begin

  • I understand my contributions may be rejected for any reason
  • I understand my contributions are for the benefit of the Philomena software
  • I understand my contributions are licensed under the GNU AGPLv3
  • I understand all of the above

This offers the following routes (given as a RFC 6570 URL template):

route why needs
POST /api/v1/json/forums/{forum_slug}/topics/{topic_slug}/posts Creates a new post in a forum by slug's thread by slug ?key={your_api_key} and {"post": {"body": "textile markup", "anonymous": true/false}} as the body

This also announces new forum posts to the Firehose API like they would be if they were made using the web UI.

@Xe Xe self-assigned this Jul 20, 2020
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.

1 participant