-
Notifications
You must be signed in to change notification settings - Fork 386
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
api: Discourse API "proxy" endpoint at /api/comments #819
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few minor questions
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some notes on the response messages:
Made some changes in error responses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alex! Just one more suggestion in #819 (comment) and it seems you may need to solve conflicts with master
branch.
I guess we could also add a small section in REAMDE describing this endpoint's spec? Just so in the future we remember why it exists, and what request/response (payloads) are expected. |
Added |
@iAdramelk please resolve the conflicts ^^ |
Co-Authored-By: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
Co-Authored-By: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
This comment described rationale to why we created this api endpoint
40d4fbf
to
6b9d01a
Compare
@shcheklein Rebased it. |
thanks @iAdramelk ! |
/* | ||
* This API endpoint is used by https://blog.dvc.org | ||
* to get comments count for the post, it gets | ||
* discuss.dvc.org topic url as a param and returns | ||
* comments count or error. | ||
* | ||
* It made this way to configure CORS, reduce user's payload | ||
* and to add potential ability to cache comments count | ||
* in the future. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll rewrap this.
API handle to return comments count to use in blog.dvc.org (see iterative/blog#8).