Git Product home page Git Product logo

anct_webapi's Introduction

明石高専オープンデータWeb API(β)

概要

明石高専オープンデータを利用した非公式Web APIです. まだβ版であり開発継続中ですので,issue飛ばすなりpull request投げるなりしていただけると幸いです.

API詳細(仮)

GET /api/v1/lectures/:id

シラバス詳細情報

GET /api/v1/timetables

時間割一覧

パラメータ

  • year: 年度(西暦) ※ 省略すると今の時間割を取ってくる
  • term: 前期/後期 ※ 省略すると今の時間割を取ってくる
  • grade: 学年
  • department: 学科ID(機械: 1,電気: 2,都市: 3,建築: 4,専攻科: 5)
  • course: コースID(電気電子: 1,情報: 2,機械・電子: 3,都市・建築: 4)
  • wday: 曜日(0: 日曜,1: 月曜, 2:火曜, 3:水曜,…,6: 土曜)
  • period: 時限

リクエスト例

# 今期の1Mの時間割
/api/v1/timetables?grade=1&department=1

# 2013年後期 4EJの時間割
/api/v1/timetables?year=2013&term=後期&grade=4&department=2&course=2

# 2014年前期 専攻科1ME 月曜3限の時間割
/api/v1/timetables?year=2014&term=前期&grade=1&department=5&course=3

GET /api/v1/timetables/:id

時間割詳細

TODO

  • scopeのテスト
  • GET /api/v1/timetablesのテスト
  • 2014年版のデータ投入
  • テストデータにFakerを使わないよう変更したい(autodocを活かすため)

Author

License

This code is free to use under the terms of the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.