baseURL: 10.156.145.162:1212
GET/feed?sortN={Number}&status={Number}&temp={Number}
- Request
{
}
- Reponse
SUCCESS {
feed:[
post:{
_id: string,
content: string,
likeN: number,
cmtN: number,
pictures:[
string
],
date: string,
weather: {
status: number,
temp: number
}
userId: string
}
user:{
userName: string,
profile: string,
likedId: [string]
}
]
}
GET/weather?lat={Number}&lon={Number}
- Request
{
}
- Reponse
SUCCESS {
weather: {
status: number,
temp: number
}
}
GET/mypage
- Request
{
}
- Reponse
SUCCESS {
userName: string,
profile: string,
}
PUT/mypage
- Request
{
userName: string,
profile: string,
}
- Reponse
SUCCESS {
}
GET/mypage/myfeed
- Request
- Reponse
SUCCESS {
feed:[
post:{
_id: string,
content: string,
likeN: number,
cmtN: number,
pictures:[
string
],
date: string,
weather: {
status: number,
temp: number
}
userId: string
}
user:{
userName: string,
profile: string,
likedId: [string]
}
]
}
GET/mypage/tagfeed
- Request
- Reponse
SUCCESS {
feed:[
post:{
_id: string,
content: string,
likeN: number,
cmtN: number,
pictures:[
string
],
date: string,
weather: {
status: number,
temp: number
}
userId: string
}
user:{
userName: string,
profile: string,
likedId: [string]
}
]
}
POST/post
- Request
{
pictures:[
file
],
content: string,
status: number,
temp: number
}
- Reponse
SUCCESS {
}
POST/comment
- Request
{
text: string
postId: string
}
- Reponse
SUCCESS {
}
GET/post/{postId}
- Request
{
}
- Reponse
SUCCESS {
[{
comment:{
userId: string,
date: string,
_id: string,
postId: string,
text: string,
},
user:{
userName: String,
profile: String
}
}]
}
DELETE/post/{postId}
- Request
{
}
- Reponse
SUCCESS {
messege: success
}
GET/like/{postId}
- Request
{
}
- Reponse
SUCCESS {
messege: success
}
POST/login
- Request
{
uesrId: String,
userName: String,
accessToken: String
}
- Reponse
SUCCESS {
messege: success,
token: String
}