pipkin
(Thijs)
1
Hi,
Is there an .json endpoint that allows me to request an arbitrary collection of posts by id? I’m talking posts here, not topics.
For example posts.json?id=2,9,40,388,...
etc etc.
Been looking through the code but couldn’t find it…
(It’s important that the response contains the full post bodies, so not only excerpts)
pfaffman
(Jay Pfaffman)
2
I don’t think so.
If you print a topic it will give you all of the posts. You can Reverse engineer the Discourse API to see what request that makes.
1 Like
Canapin
(Coin-coin le Canapin)
3
Out of curiosity, what would be your use case?
2 Likes
pipkin
(Thijs)
4
Building a proof-of-concept of a Discourse-powered shared-bookmarking system.
pfaffman
(Jay Pfaffman)
5
I’d do that in a plugin so you could create your own endpoint that returned /bookmarks/user/USERNAME
or whatever you want.
Or even easier might be to just add to some serializer the bookmarks you want.
1 Like
pipkin
(Thijs)
6
I came to the exact same options! Thanks
1 Like
system
(system)
Closed
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.