Upload 4.23
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DELETE http://localhost:3001/api/blogs/64778b41a8f175e16455b293
|
||||
DELETE http://localhost:3001/api/blogs/6484657ae72e7bef647c9905
|
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFuZHl5eXl5IiwiaWQiOiI2NDg0NWNhNmQwYTQyZWZmYTJkYWI2YjciLCJpYXQiOjE2ODYzOTc5NDAsImV4cCI6MTY4NjQwMTU0MH0.aNbGA9IkA5JyfPyQGzZIP4Y3tETdX_u9OLFqZGB5cfU
|
||||
@@ -1 +0,0 @@
|
||||
GET http://localhost:3001/api/blogs
|
||||
2
part4/bloglist/requests/get_all_blogs.rest
Normal file
2
part4/bloglist/requests/get_all_blogs.rest
Normal file
@@ -0,0 +1,2 @@
|
||||
GET http://localhost:3001/api/blogs
|
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFuZHl5eXl5IiwiaWQiOiI2NDg0NWNhNmQwYTQyZWZmYTJkYWI2YjciLCJpYXQiOjE2ODYzOTc5NDAsImV4cCI6MTY4NjQwMTU0MH0.aNbGA9IkA5JyfPyQGzZIP4Y3tETdX_u9OLFqZGB5cfU
|
||||
2
part4/bloglist/requests/get_all_users.rest
Normal file
2
part4/bloglist/requests/get_all_users.rest
Normal file
@@ -0,0 +1,2 @@
|
||||
GET http://localhost:3001/api/users
|
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im1sdXVra2FpIiwiaWQiOiI2NDdlZmYxNDczODcxN2E3ZTg1OWYzNWIiLCJpYXQiOjE2ODYwNDQ5MDUsImV4cCI6MTY4NjA0ODUwNX0.OVQ7p7Ejpgy6es8hFTf9_lFKriRYdd7YAIMF0iWyasM
|
||||
7
part4/bloglist/requests/login.rest
Normal file
7
part4/bloglist/requests/login.rest
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://localhost:3001/api/login
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"username": "andyyyyy",
|
||||
"password": "123456"
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
POST http://localhost:3001/api/blogs
|
||||
content-type: application/json
|
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFuZHl5eXl5IiwiaWQiOiI2NDg0NWNhNmQwYTQyZWZmYTJkYWI2YjciLCJpYXQiOjE2ODYzOTc5NDAsImV4cCI6MTY4NjQwMTU0MH0.aNbGA9IkA5JyfPyQGzZIP4Y3tETdX_u9OLFqZGB5cfU
|
||||
|
||||
{
|
||||
"title": "Last blog", "author": "Andrew", "url": "www.andrew.eu", "likes": 1000
|
||||
"title": "To be deleted", "author": "Andrew", "url": "www.andrew.eu", "likes": 1000
|
||||
|
||||
}
|
||||
8
part4/bloglist/requests/post_user.rest
Normal file
8
part4/bloglist/requests/post_user.rest
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://localhost:3001/api/users
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"username": "andyyyyy",
|
||||
"name": "Andrew",
|
||||
"password": "123456"
|
||||
}
|
||||
Reference in New Issue
Block a user