Skip to content

Conversation

aaronpk
Copy link

@aaronpk aaronpk commented Nov 2, 2021

Since the POST /topics.json method accepts embed_url, this PR adds that to the documentation.

This would have saved me a lot of headache in a blog comment migration project as documented on the meta forum.

@oblakeerickson
Copy link
Contributor

Thanks for making this PR! Just thought I'd message you real quick. This is totally on me, but the README instructions need to be updated as we have moved the openapi.yml/.json generation to inside the discourse/discourse repo and are using rswag to generate the api docs rather than manually editing the files in the repo.

You will want to look into this file: https://github.com/discourse/discourse/blob/main/spec/requests/api/posts_spec.rb#L100 and the referenced schema files located in: https://github.com/discourse/discourse/tree/main/spec/requests/api/schemas/json

I'll work on providing better instructions in the README, but not something I can get done tonight. Please reach out if you need help.

oblakeerickson added a commit to discourse/discourse that referenced this pull request Nov 4, 2021
When creating a topic via the api you can pass in the `embed_url` param,
so adding this to the api docs.

See: discourse/discourse_api_docs#26
oblakeerickson added a commit to discourse/discourse that referenced this pull request Nov 4, 2021
When creating a topic via the api you can pass in the `embed_url` param,
so adding this to the api docs.

See: discourse/discourse_api_docs#26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants