I found some interfaces not working properly #859
-
curl -X "POST" "https://api.realworld.io/api/users/login/" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d $'{
"user": {
"email": "[email protected]",
"password": "123123123"
}
}'
# authorization
curl "https://api.realworld.io/api/articles/?limit=10&offset=0" \
-H 'Accept: application/json'
# unauthorized
curl "https://api.realworld.io/api/articles/?limit=10&offset=0" \
-H 'Accept: application/json' \
-H 'authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImRpZGlAZGlkaS5jb20iLCJ1c2VybmFtZSI6ImRpZGkiLCJwYXNzd29yZCI6IiQyYSQxMCRnYTJLUzFzbFB4cGdzOHZVZ0MzazIuYVhDbS9qMHpwL0FFR2c5YnZObUlIbnBILnUvSUlLTyIsImJpbyI6bnVsbCwiaW1hZ2UiOiJodHRwczovL2ltZzAuYmFpZHUuY29tL2l0L3U9MjIxNjExOTc3OSw2NTMwNTUzODYmZm09MjUzJmZtdD1hdXRvJmFwcD0xMzgmZj1KUEVHP3c9NTAwJmg9NTAwIiwiaWF0IjoxNjQyNTgxNjQwLCJleHAiOjE2NDc3NjU2NDB9._cS2BHYR2hQmzwGUOijDh9WCeBgsXtAswxX7c5_YapE' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @CodeIdeal, about not retrieving content from other accounts, it's part of the documentation: https://realworld-docs.netlify.app/docs/specs/frontend-specs/api#api-limitations We had literally all kinds of undesirable content added by some users last year so we had to add limitations to visibility. About the image data, I'll fix it. |
Beta Was this translation helpful? Give feedback.
-
@geromegrignon curl -X "PUT" "https://api.realworld.io/api/user/" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImRpZGlAZGlkaS5jb20iLCJ1c2VybmFtZSI6ImRpZGkiLCJwYXNzd29yZCI6IiQyYSQxMCRnYTJLUzFzbFB4cGdzOHZVZ0MzazIuYVhDbS9qMHpwL0FFR2c5YnZObUlIbnBILnUvSUlLTyIsImJpbyI6bnVsbCwiaW1hZ2UiOiJodHRwczovL2ltZzAuYmFpZHUuY29tL2l0L3U9MjIxNjExOTc3OSw2NTMwNTUzODYmZm09MjUzJmZtdD1hdXRvJmFwcD0xMzgmZj1KUEVHP3c9NTAwJmg9NTAwIiwiaWF0IjoxNjQyNTgxNjQwLCJleHAiOjE2NDc3NjU2NDB9._cS2BHYR2hQmzwGUOijDh9WCeBgsXtAswxX7c5_YapE' \
-d $'{"bio": "test"}' |
Beta Was this translation helpful? Give feedback.
Hey @CodeIdeal, about not retrieving content from other accounts, it's part of the documentation: https://realworld-docs.netlify.app/docs/specs/frontend-specs/api#api-limitations
We had literally all kinds of undesirable content added by some users last year so we had to add limitations to visibility.
About the image data, I'll fix it.