add missing path for create topic, post, pm #15
Closed
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
I noticed that the path for "Create a new topic, a new post, or a private message" wasn't working. After debugging by using the UI and looking at the developer console I noticed the path was
posts
instead ofposts.json
.In the swagger.yml file it looks like the path was missing altogether and using the path of the preceding item which happened to be
posts.json
so it looked very similar.... this if my first PR so if I'm not following the right etiquette or protocol please let me know. Thanks :) I wasn't actually sure how to do this and got a lot of value out of the step-by-step guide in this post: https://meta.discourse.org/t/discourse-development-contribution-guidelines/3823