Skip to content

Commit

Permalink
test readme update, signup route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manupanand committed Nov 11, 2024
1 parent 1df5c76 commit 0e03535
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions TestReadme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ use token generated for further use
CRUD-
delete- http://localhost:2500/admin/question/delete
pass in body as shown
{
```{
" id":"id of question",
"update":{
"question":"What is the capital of Estonia?",
Expand All @@ -90,9 +90,10 @@ pass in body as shown
}
```

update-put request in body http://localhost:2500/admin/question/update
{
```{
"id":"question id",
"update":{
"question":"What is the capital of Estonia?",
Expand All @@ -102,24 +103,26 @@ update-put request in body http://localhost:2500/admin/question/update
}
```

sample question is post request -use bearer token of admin as authorization



Sample token for testing purpose

user-token :eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NzMxYjg1ZmU0ZTZjOTkzZGU5MzU2NTMiLCJpYXQiOjE3MzEzMTE3MTF9.YqquIuSsDwhHCDid8cywL2qlnocSDdOOyMqgZi_g-i4
```user-token :eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NzMxYjg1ZmU0ZTZjOTkzZGU5MzU2NTMiLCJpYXQiOjE3MzEzMTE3MTF9.YqquIuSsDwhHCDid8cywL2qlnocSDdOOyMqgZi_g-i4
admin-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NzMwZDMxNTQwMzMxYmEwNmI1NTg3NjEiLCJpYXQiOjE3MzEyNTMwMTN9.Y_LzgaSqLeBqwvlplAcTzfmd63jR7oRPK5zFZrzHJ9w
```



answer submit -http://localhost:2500/user/answer/submit -

use user token

```
{
"userId": "6731b85fe4e6c993de935653",
"answers": [
Expand All @@ -132,4 +135,5 @@ use user token
"selectedAnswer": "Kabul"
}
]
}
}
```

0 comments on commit 0e03535

Please sign in to comment.