Skip to content

Instantly share code, notes, and snippets.

@bunseokbot
Last active June 27, 2017 11:49
Show Gist options
  • Select an option

  • Save bunseokbot/656c603c815e231130733caceea6ef66 to your computer and use it in GitHub Desktop.

Select an option

Save bunseokbot/656c603c815e231130733caceea6ef66 to your computer and use it in GitHub Desktop.
2016 소세지 지옥의 여름캠프 과제

SSG HELL TRAINING Quest (end)

Goal: Develop API Service using Flask and SQLite DB

API Key Account

POST /register/account

Register account of this Service

Parameters

  • id : ID of Account
  • pw : Password of Account
  • email : E-mail of Account

Return

  • account_id : unique account ID
  • status_msg : result msg

Result msg

  • 200 : SUCCESS
  • 403 : ACCOUNT_EXIST

POST /register/apikey

Register API Key using account

Parameters

  • account_id : ID of account

Return

  • api_key : API Key
  • status_msg : result msg

Result msg

  • 200 : SUCCESS
  • 403 : APIKEY_ALREADY_EXIST

API Documentation

POST /search/instagram

Get Instagram Image from Account

Parameters

  • api_key : API KEY
  • account_name : account name of Instagram

Return

  • account_name : id of instagram account name
  • url_list : list of instagram image url list

Result msg

  • 200 : SUCCESS
  • 404 : APIKEY_NOTFOUND
  • 403 : APIKEY_EXPIRED

POST /search/haksik/chan

Get Chan Skylounge menu

Parameters

  • api_key : API KEY
  • date : date of chan skylounge

Return

  • lunch_list : Lunch list
  • dinner_list : Dinner list

Result msg

  • 200 : SUCCESS
  • 404 : APIKEY_NOTFOUND
  • 403 : APIKEY_EXPIRED

POST /search/haksik/ugeongdang

Get U geong-dang menu

Parameters

  • api_key : API KEY
  • date : date of u geongdang
  • type : premium, ilpum, yangsik, hansik, bunsik

Return

  • foodlist : list of food in targeted date
  • isAvailable : is food restruant is working now?

Result msg

  • 200 : SUCCESS
  • 404 : APIKEY_NOTFOUND
  • 403 : APIKEY_EXPIRED

POST /search/haksik/hakseong

Get Hakseong sikdang menu

Parameters

  • api_key : API KEY

Return

  • foodlist : list of food in targeted date

Result msg

  • 200 : SUCCESS
  • 404 : APIKEY_NOTFOUND
  • 403 : APIKEY_EXPIRED

POST /search/haksik/gunza

Get Gunza menu

Parameters

  • api_key : API KEY
  • date : date of gunza menu

Return

  • lunch_list : Lunch list
  • dinner_list : Dinner list

Result msg

  • 200 : SUCCESS
  • 404 : APIKEY_NOTFOUND
  • 403 : APIKEY_EXPIRED
@bunseokbot
Copy link
Copy Markdown
Author

Markdown 짜기 귀찮아서 이렇게 했으니 양해 부탁드려요 ㅈㅅ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment