Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.
/ neis-api Public archive

๐Ÿ“ฆ ๋‚˜์ด์Šค ํ•™์ƒ์„œ๋น„์Šค ํŽ˜์ด์ง€๋ฅผ ํŒŒ์‹ฑํ•˜์—ฌ JSON API๋กœ ์ œ๊ณตํ•˜๋Š” ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

License

Notifications You must be signed in to change notification settings

chemistryx/neis-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

neis-api

๋‚˜์ด์Šค ํ•™์ƒ์„œ๋น„์Šค ํŽ˜์ด์ง€๋ฅผ ํŒŒ์‹ฑํ•˜์—ฌ JSON API๋กœ ์ œ๊ณตํ•˜๋Š” ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

Deprecated

๋‚˜์ด์Šค ๊ณต์‹ OpenAPI๋ฅผ ์ด์šฉํ•ด์ฃผ์„ธ์š” https://open.neis.go.kr

๊ธฐ๋ณธ URL

https://api.chemistryx.me/neis

๊ธ‰์‹ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

์š”์ฒญ

GET /meal/{schoolCode}/{schoolStage}/{year}/{month}

๋งค๊ฐœ๋ณ€์ˆ˜ ์„ค๋ช…
schoolCode ํ•™๊ต ์ฝ”๋“œ(10์ž๋ฆฌ)
schoolStage ํ•™๊ต ๊ณผ์ • ์ฝ”๋“œ(1์ž๋ฆฌ)
year ์กฐํšŒํ•˜๊ณ ์ž ํ•˜๋Š” ์—ฐ๋„(4์ž๋ฆฌ)
month ์กฐํšŒํ•˜๊ณ ์ž ํ•˜๋Š” ๋‹ฌ(2์ž๋ฆฌ)

์‘๋‹ต

{
  "status": true,
  "schoolCode": "X000000000",
  "schoolStage": "0",
  "year": "2020",
  "month": "02",
  "menu": [
    {
      "date": 1,
      "breakfast": [],
      "lunch": ["ํ˜„๋ฏธ๋ฐฅ(๊ณ )", "์‡ ๊ณ ๊ธฐ๊ฐ์ž๊ตญ(๊ณ )", "ํฌํฌ์ปคํ‹€๋ ›(๊ณ )", "๊ผฌ๋งˆ์ƒˆ์†ก์ด๋ฒ„์„ฏ๋ณถ์Œ", "์•ผ์ฑ„์ซ„๋ฉด๋ฌด์นจ(๊ณ )", "๋ฐฐ์ถ”๊น€์น˜(๊ณ )", "๋œ์žฅ์†Œ์Šค(๊ณ )", "ํ‚ค์œ„"],
      "dinner": []
    }
  ]
}

ํ•™์‚ฌ์ผ์ • ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

์š”์ฒญ

GET /schedule/{schoolCode}/{schoolStage}/{year}/{month}

๋งค๊ฐœ๋ณ€์ˆ˜ ์„ค๋ช…
schoolCode ํ•™๊ต ์ฝ”๋“œ(10์ž๋ฆฌ)
schoolStage ํ•™๊ต ๊ณผ์ • ์ฝ”๋“œ(1์ž๋ฆฌ)
year ์กฐํšŒํ•˜๊ณ ์ž ํ•˜๋Š” ์—ฐ๋„(4์ž๋ฆฌ)
month ์กฐํšŒํ•˜๊ณ ์ž ํ•˜๋Š” ๋‹ฌ(2์ž๋ฆฌ)

์‘๋‹ต

{
  "status": true,
  "schoolCode": "X000000000",
  "schoolStage": "0",
  "year": "2020",
  "month": "02",
  "schedule": [
    {
      "date": 1,
      "content": ["์—ฌ๋ฆ„๋ฐฉํ•™"]
    }
  ]
}

์„ค์น˜ํ•˜๊ธฐ

์ฐธ๊ณ  Ruby 2.5์ด์ƒ์ด ์„ค์น˜๋˜์–ด ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

bundle install

์‹คํ–‰ํ•˜๊ธฐ

jets server

๋„์›€๋ง

ํ•™๊ต ์ฝ”๋“œ

ํ•™๊ต ์ฝ”๋“œ๋Š” https://par.goe.go.kr/spr_ccm_cm01_100.do?kraOrgNm={ํ•™๊ต์ด๋ฆ„} ์„ ํ†ตํ•ด ๋‚˜์˜จ orgCode๊ฐ’์—์„œ ์ฐพ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ•™๊ต ๊ณผ์ • ์ฝ”๋“œ

ํ•™๊ต ๊ณผ์ • ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

ํ•™๊ต ํ•™๊ต ๊ณผ์ • ์ฝ”๋“œ
๊ณ ๋“ฑํ•™๊ต 4
์ค‘ํ•™๊ต 3
์ดˆ๋“ฑํ•™๊ต 2

About

๐Ÿ“ฆ ๋‚˜์ด์Šค ํ•™์ƒ์„œ๋น„์Šค ํŽ˜์ด์ง€๋ฅผ ํŒŒ์‹ฑํ•˜์—ฌ JSON API๋กœ ์ œ๊ณตํ•˜๋Š” ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published