why i cant get user articles #1572
Replies: 2 comments
-
I have a similar issue, where when I run the "/api/articles" request only articles from the logged-in user are returned. |
Beta Was this translation helpful? Give feedback.
-
hi @TaherBarakat, as explained in the docs to avoid exposing malicious user created content to everyone, you can only see the content you created (and the boilerplate one). So if you are requesting the API directly, you need to provide a jwt token of the related user |
Beta Was this translation helpful? Give feedback.
-
the request is
https://api.realworld.io/api/articles?offset=0&limit=20&author=qwerqwer
response is
{"articles":[],"articlesCount":0}
and i have created many articles and requested them by the slug and it appears that they exist
whats the problem here?
Beta Was this translation helpful? Give feedback.
All reactions