한글을 한글로! Project (2016 Smarteen App Challenge) - Server Backend
- UI/UX Designer Taeyun Kim
- Android Client Developer Junseok Oh
- iOS Client Developer / Video Director Joonwoo Jeong
- Server Backend Developer Younjune Kim
- Service Planner / DB Manager Changhyeon Nam
hangeulro Project (smarteen app challenge 2016) Node.JS Backend the end
-
Common Response
HTTP 200: Success
HTTP 400: DB error
HTTP 401: Bad Request
HTTP 403: Params Missing
-
POST /auth/login : User Login
Params
userid : User's ID [String]
pw : User's Password [String]
Response
HTTP 200 : User
HTTP 400 : No user
HTTP 401 : ID / Password Incorrect
- POST /auth/auto : Auto Login
Params
token : token [String]
Response
HTTP 200 : UserID and token or apikey
HTTP 401 : Access Denied
- POST /auth/register : User Register
Params
userid : User's ID [String]
pw : User's Password [String]
username : User's Name [String]
Response
HTTP 200 : User
HTTP 300 : already exists
HTTP 400 : DB Error
- POST /auth/destroy
Params
token : token [String]
Response
HTTP 200 : good bye
HTTP 401 : not found
HTTP 409 : DB ERROR
- GET /auth/fb/token
Params
access_token : access token
Response
HTTP 200 : send user
HTTP 400 : DB Error
- GET /auth/tw/token : send tw token
Params
oauth_token : oauth_token
oauth_token_secret: oauth_token_secret
user_id: user_id
Response
HTTP 200 : send user
HTTP 400 : DB Error
- POST /word
Response
HTTP 200 : all word's
HTTP 401 : Bad Request
- POST /word/find
Params
search : word search in word or similar word's [String]
Response
HTTP 200 : return word [String Json]
HTTP 401 : No word Found
- POST /word/cata
Params
cata : word catalog [String]
Response
HTTP 200 : return word [String Json]
HTTP 401 : No word Found
- POST /word/getWordInfo
Params
wordid : word id to get word Info [String]
Response
HTTP 200 : return word Info [String Json]
HTTP 401 : No word Found
- POST /word/commentAdd
Params
token : writer token [String]
date : write date [String]
wordid : wordid to write [String]
summary : comment summary [String]
Response
HTTP 200 : return word Info [String Json]
HTTP 401 : No word Found
- GET /version
Response
HTTP 200 : return version [String]
-
POST /mydic
Params
token: mydic owner token [String]
Response
HTTP 200 : return mydic list [String array] HTTP 409 : send reason "already exists" or DB ERROR
-
POST /mydic/make
Params
token: mydic owner token [String]
sub: mydic sub title [String]
dicname: mydic name [String]
Response
HTTP 200 : Success
HTTP 409 : DB ERROR
- POST /mydic/add
Params
token: mydic token [String]
dicname: mydic name [String]
id: add word id [String]
Response
HTTP 200 : return word list [String array]
HTTP 409 : send reason "already exists" or DB ERROR
- POST /mydic/pop
Params
token: mydic owner token [String]
dicname: mydic name [String]
id: pop word id [String]
Response
HTTP 200 : return word list [String array]
HTTP 409 : send reason "already exists" or DB ERROR
- POST /board
Response
HTTP 200 : return board json
- POST /board/write
Params
file: if user upload image use key file
token: writer token [String]
date: date [String]
title: title name [String]
contents: contents [String]
Response
HTTP 200 : return Success
HTTP 409 : send reason "already exists" or DB ERROR
- POST /board/commentAdd
Params
token: writer token [String]
boardid: boardid [String]
comment: board comment [String]
date: write date [String]
Response
HTTP 200 : return Success
HTTP 400 : not vaild token
HTTP 409 : send reason "already exists" or DB ERROR
- POST /board/detail
Params
boardid: boardid [String]
Response
HTTP 200 : return board detail
HTTP 400 : not vaild id
- POST /board/like
Params
boardid: boardid [String]
Response
HTTP 200 : return board
HTTP 400 : not vaild id
- POST /board/dislike
Params
boardid: boardid [String]
Response
HTTP 200 : return board
HTTP 400 : not vaild id
- POST /quize
Params
nope
Response
HTTP 200 : return random word
- POST /my
Params
token: user token
Response
HTTP 200: return user data
HTTP 401: user not found
HTTP 409: DB ERROR
- POST /my/pointUp
Params
token: user token pointUp: pointUp
Response
HTTP 200: return user data
HTTP 401: user not found
HTTP 409: DB ERROR
- POST /my/board
Params
token: user token
Response
HTTP 200: return writed board
HTTP 401: user not found
HTTP 409: DB ERROR
id : User's id [String required unique]
pw : User's Password [String required]
apikey : User ApiKey [String]
token : User token [String]
mydic : User's Custom dictionary [Array]
dicname: dictionary list [String] favorite: contents list [number Array] (Array Contains ONLY word's id)
id: word's ID [String]
word : this Word [String]
mean : Word's mean [String]
ex : Word's example [String]
similar : similar Word [String Array]
cata : catalog [String Array]
tag : tag of Word [String Array]
comments: [{ writer: {type: String}, date: {type: String}, summary: {type: String} }]
boardid: boardid [String]
writer: boardWriter [String]
writerToken: writerToken [String]
imageurl: boardimageurl [String]
date : boardWriteDate [Date]
good : [Number]
bad : [Number]
comments:[{ writer: {type: String}, date: {type: String}, summary: {type: String} }]
owner: {type: String}
dicname: {type: String}
sub: {type: String}
favorite: [String] // array