/api/users/signup
{
username: String,
password: String
}
{
message: String,
success: Boolean,
payload: {
username: String
}
}
/api/users/login
{
username: String,
password: String
}
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {}
}
/api/users/mail-auth
Authorization: Bearer jwtvalue
{
authcode: Integer
}
{
message: String,
success: Boolean,
payload: {}
}
/api/users/password
Authorization: Bearer jwtvalue
{
existingpassword: String,
newpassword: String
}
{
message: String,
success: Boolean,
payload: {}
}
/api/users/logout
Authorization: Bearer jwtvalue
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {}
}
이미 만료된 jwt를 반환.
/api/users/{userId}/profiles
{
message: String,
success: Boolean,
payload: {
nickname: String,
introduction: String,
profileImageUrl: String
}
}
/api/users/{userId}/profiles
Authorization: Bearer jwtvalue
{
nickname: String,
introduction: String
}
{
message: String,
success: Boolean,
payload: {
nickname: String,
introduction: String,
profileImageUrl: String
}
}
/api/users/{userId}/profiles/image?image={image}
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
imageUrl: String
}
}
/api/users/{userId}/profiles/image
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
imageUrl: String
}
}
/api/users/{userId}/profiles/image
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {}
}
/api/posts
Authorization: Bearer jwtvalue
{
title: String,
contents: String
}
{
message: String,
success: Boolean,
payload: {
id: Long,
title: String,
contents: Staring,
username: String,
likesCount: int,
createdAt: LocalDateTime
}
}
/api/posts/{postId}
{
message: String,
success: Boolean,
payload: {
id: Long,
title: String,
contents: Staring,
username: String,
likesCount: int,
createdAt: LocalDateTime
}
}
/api/posts?page={page}&size={size}
Authorization: Bearer jwtvalue(required=false)
{
message: String,
success: Boolean,
payload: {
[PostDto…]
}
}
/api/posts/{postId}
Authorization: Bearer jwtvalue
{
title: String,
contents: String
}
{
message: String,
success: Boolean,
payload: {
title: String,
contents: String
}
}
/api/posts/{postId}
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {}
}
/api/posts/{postId}/comments
Authorization: Bearer jwtvalue
{
text: String
}
{
message: String,
success: Boolean,
payload: {
username: String,
text: String,
comment_id: Long,
date: ZonedDateTime,
likesCount: int
}
}
/api/posts/{postId}/comments
{
message: String,
success: Boolean,
payload: {
[CommentDto…]
}
}
/api/posts/{postId}/comments/{commentId}
Authorization: Bearer jwtvalue
{
contents: String
}
{
message: String,
success: Boolean,
payload: {
username: String,
text: String,
comment_id: Long,
date: ZonedDateTime,
likesCount: int
}
}
/api/posts/{postId}/comments/{commentId}
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {}
}
/api/posts/{postId}/comments/{commentId}/likes
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
likesCount: Integer
}
}
/api/posts/{postId}/comments/{commentId}/likes
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
likesCount: Integer
}
}
/api/posts/{postId}/likes
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
likesCount: Integer
}
}
/api/posts/{postId}/likes
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
likesCount: Integer
}
}
/api/users/{userId}/follows
Authorization: Bearer jwtvalue
{
message: String,
success: Boolean,
payload: {
followers: [String…],
followings: [Sring…]
}
}
/api/users/{userId}/follows
/api/users/{userId}/follows
Authorization: Bearer jwtvalue