서울 앱 공모전 서울링 서버
/auth/token
/auth/signup
/auth/signin/email
/auth/signin/sns
/plan
/plan/{plan_id}
/plan/{plan_id}/schedule
/schedule/{schedule_id}
/tag
/spot/search/tag
/spot/search/name
/spot/{spot_id}
/spot/{spot_id}/comment
/myseoul
/me
Check Token
header
Key | Value |
---|---|
Content-Type | application/json |
request
{
"token": String
}
response
{
"message": String
}
Sign up
header
Key | Value |
---|---|
Content-Type | application/json |
request
{
"sns_token": String(Optional),
"email": String(Optional),
"password": String(Optional),
"login_type": String,
"nickname": String,
"profile_picture": String(Optional)
}
response
{
"data": {
"id": Integer,
"sns_token": String,
"email": String,
"password": String,
"nickname": String,
"profile_picture": String,
"is_push": Boolean,
"login_type": Integer,
"last_login": String,
"created_at": String
}
}
login
header
Key | Value |
---|---|
Content-Type | application/json |
request
{
"email": String,
"password": String
}
response
{
"token": String
}
login from facebook / google
header
Key | Value |
---|---|
Content-Type | application/json |
request
{
"sns_token": String,
"type": String
}
response
{
"token": String
}
Get Plans
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
{
"last_id": Integer
}
response
{
data: [
{
"id": Integer,
"scheme": String,
"name": String,
"picture": String,
"created_date": String,
"start_date": String,
"end_date": String
},
...
],
"paging": {
"after": String,
"before": String
}
}
Create Plans
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
request
{
"start_date": String,
"end_date": String,
"name": String
},
response
{
data: {
"id": Integer,
"scheme": String,
"name": String,
"picture": String,
"created_date": String,
"start_date": String,
"end_date": String
}
}
Edit Plans
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
request
{
"name": String(Optional),
"start_date": String(Optional),
"end_date": String(Optional),
},
response
{
"data": {
"id": Integer,
"scheme": String,
"name": String,
"picture": String,
"created_date": String,
"start_date": String,
"end_date": String
},
}
Delete Plans
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
request
response
{
"message": String
}
Get Plan's schedule
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
{
}
response
{
data: {
"id": Integer,
"date": String,
"morning": [
{
"spot_id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
]
"after_noon": [
{
"spot_id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
]
"night": [
{
"spot_id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
]
}
Edit Plan's schedule
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
request
{
"type": "morning" / "after_noon" / "night",
"add": List(Integer),
"remove": List(Integer)
}
response
{
"data": {
"id": Integer,
"date": String,
"morning": [
{
"spot_id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
]
"after_noon": [
{
"spot_id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
]
"night": [
{
"spot_id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
]
}
}
Get tags
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
response
{
"data": [
{
id: Integer,
bundle: List(String)
}
...
]
}
Search Spot from tag
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
{
"last_id": Integer
}
request
{
"tag": [
{
"id": Integer,
"selected": String
},
...
]
}
response
{
"data": [
{
"id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
],
"paging": {
"after": String,
"before": String
}
}
Search Spot from name
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
{
"last_id": Integer
}
request
{
"name": String
}
response
{
"data": [
{
"id": Integer,
"scheme": String,
"picture": String,
"name": String
},
...
],
"paging": {
"after": String,
"before": String
}
}
Get Spot
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
response
{
"data": {
"id": Integer,
"name": String,
"content": String,
"pictures": List(String),
"like": Integer,
"visitor": Integer
}
}
Get Spot's message
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
{
"last_id": Integer
}
response
{
"data": [
{
"id": Integer,
"author_name": String,
"author_picture": String,
"content": String,
"created_date": String
}
...
],
"paging": {
"after": String,
"before": String
}
}
Post Spot's message
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
request
{
"content": String
}
response
{
"data": {
"author": User,
"content": String,
"created_date": String
}
}
Get MySeoul Info
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
response
{
"data": [
{
"order": Number,
"picture": String
}
...
]
}
Get my Info
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
param
response
{
"data": {
"profile_picture": String,
"nickname": String,
"is_push": Boolean
}
}
Edit my Info
header
Key | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer token |
request
{
"profile_picture": File(Optional),
"nickname": String(Optional),
"is_push": Boolean(Optional)
}
response
{
"data": {
"profile_picture": String,
"nickname": String,
"is_push": Boolean
}
}