Project: spring-blogging-rest-api
π Collection: Category
End-point: getBlogsByCategory
http://localhost:8080/api/v1/categories/1/blogs
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getAllCategories
http://localhost:8080/api/v1/categories/?page=0&size=3
Param
value
page
0
size
3
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getCategoryById
http://localhost:8080/api/v1/categories/1
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: createCategory
http://localhost:8080/api/v1/categories/
{
"name" :" Spring Boot restful ap 211111 333" ,
"title" :" This is title" ,
"description" :" This is description"
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: updateCategory
http://localhost:8080/api/v1/categories/2
{
"name" : " Spring Boot restful ap 22222 update" ,
"description" : " This is description update" ,
"title" : " This is title update"
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteCategoryById
http://localhost:8080/api/v1/categories/4
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteAllCategory
http://localhost:8080/api/v1/categories
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/blogs/?page=0&size=10
Param
value
page
0
size
10
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/blogs/1
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getCommentsByBlog
http://localhost:8080/api/v1/blogs/1/comments/?page=0&size=3
Param
value
page
0
size
3
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/blogs/1/tags/?page=0&size=2
Param
value
page
0
size
2
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/blogs
{
"title" : " This is zcaav aakhaaaaang aa" ,
"body" : " Body" ,
"description" : " This is description" ,
"image" : " Image link" ,
"views" : 2 ,
"published" : true ,
"categoryId" : 1 ,
"comments" :[
{
"title" :" this is 1 comment a" ,
"body" :" body for 1 comment"
},
{
"title" :" this is 2 comment a" ,
"body" :" body for 2 comment"
}
],
"tags" : [
{
"name" : " IT" ,
"description" : " This is tag"
},
{
"name" : " MKT" ,
"description" : " This is MKT Tag"
},
{
"name" :" CNTT" ,
"description" : " This is CNTT Tag"
}
]
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteBlogById
http://localhost:8080/api/v1/blogs/4
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: updateBlogById
http://localhost:8080/api/v1/blogs/1
{
"title" : " This is zcaav aakhaaaaang aaaa" ,
"body" : " Body update" ,
"description" : " This is description update" ,
"image" : " Image link update" ,
"views" : 2 ,
"published" : true ,
"categoryId" : 1
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteAllBlogsByCategoryId
http://localhost:8080/api/v1/categories/2/blogs
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
π Collection: Comment
End-point: getAllComments
http://localhost:8080/api/v1/comments/?page=0&size=10
Param
value
page
0
size
10
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getCommentById
http://localhost:8080/api/v1/comments/1
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/tags/1/blogs/?page=0&size=1
Param
value
page
0
size
1
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/tags/
{
"name" :" Social in my heart 2" ,
"description" :" This is description"
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: addComment
http://localhost:8080/api/v1/blogs/1/comments
{
"title" :" this is title aaaa" ,
"body" :" great post"
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteCommentById
http://localhost:8080/api/v1/comments/16
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: updateCommentById
http://localhost:8080/api/v1/comments/1
{
"title" : " this is dbsdv comment update a aaaa" ,
"body" : " body for 3 coasmment update a"
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteCommentsByBlog
http://localhost:8080/api/v1/blogs/6/comments
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/tags/?page=0&size=10
Param
value
page
0
size
10
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deletetTagById
http://localhost:8080/api/v1/tags/1
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/tags/4
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/tags/
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: removeTagsByBlog
http://localhost:8080/api/v1/blogs/5/tags
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/tags/1
{
"name" : " IT update" ,
"description" : " This is tag update"
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getCurrentUser
http://localhost:8080/api/v1/users/me
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: checkUniqueUsername
http://localhost:8080/api/v1/users/unique-username?username=khai
Param
value
username
khai
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: checkUniqueEmail
http://localhost:8080/api/v1/users/unique-email?email=email
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getUserProfile
http://localhost:8080/api/v1/users/khang/profiles
π Authentication bearer
Param
value
Type
token
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiZXhwIjoxNjYzNzY5Nzk2fQ.vOQSZDKvKnErjIsLjPX87IggtlNZ2OJED2G6ieaAJNU
string
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: deleteUserByUsername
http://localhost:8080/api/v1/users/khai/
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: updateUserByUsername
http://localhost:8080/api/v1/users/kiet/
{
"username" : " kiet" ,
"email" : " emailSub112@gmail.com" ,
"firstName" : " First name sub111" ,
"lastName" : " Last name sub1" ,
"password" :" 123" ,
"phoneNumber" : " Phone number sub1" ,
"enabled" : true ,
"image" : " Image sub1"
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getBlogsByUsername
http://localhost:8080/api/v1/users/khang/blogs
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getCommentsByUsername
http://localhost:8080/api/v1/users/khai/comments
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: getCategoriesByUsername
http://localhost:8080/api/v1/users/khai/categories
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: giveAdminByUsername
http://localhost:8080/api/v1/users/kiet/admins-permission
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: takeAdminByUsername
http://localhost:8080/api/v1/users/kiet/admins-denial
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/auth/register
{
"username" : " khai a1123" ,
"email" : " emailSub1aa@gmail.com" ,
"password" :" 123" ,
"firstName" : " First name sub1 a" ,
"lastName" : " Last name sub1 a" ,
"phoneNumber" : " Phone number sub1a " ,
"enabled" : true ,
"image" : " Image sub1" ,
"blogsCount" : 0 ,
"birthday" : null ,
"address" : " address sub1"
}
π Authentication basic
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
http://localhost:8080/api/v1/auth/signin
{
"username" :" kiet" ,
"password" :" 123"
}
π Authentication noauth
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
Powered By: postman-to-markdown