IseokChan
  • 이석찬 매뉴얼 :: 홈
  • 메인
    • 사이트 접속 방법
    • 메인화면
      • 이미지 저작권 표시
      • 의견 제출
      • 사진 제출
      • 개인정보처리방침
      • 서비스 저작권 표시
    • 이석찬 설치하기
  • 기본 기능
    • 개요
    • 이석 신청
    • 이석 확인
    • 이석 관리
  • 기능 심화
    • 개요
    • 인증
    • 권한인가
  • API
    • 개요
    • 기본 API
      • Auth
      • Iseok
      • Period
      • Room
  • 관리자 가이드
    • 개요
    • 전역설정
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. 기본 API

Room

교실과 관련된 API 입니다.

모든 교실 혹은 특정 교실 받아오기

GET https://api.iseokchan.com/v1/room/:id

id 값이 없다면, 등록된 모든 교실을 받아옵니다. id 값이 있다면, 특정 교실을 받아옵니다.

Path Parameters

Name
Type
Description

id

number

교실 id 값입니다. 지정되지 않으면 모든 교실을 가져옵니다.

Query Parameters

Name
Type
Description

studyroom

boolean

학습실 여부입니다. 지정되지 않으면 학습실 여부에 관계 없이 값을 가져옵니다.

iseokable

boolean

이석 가능 여부입니다. 지정되지 않으면 이석 가능 여부에 관계 없이 값을 가져옵니다.

{
    "status": 200,
    "results": [
        {
            "id": "1",
            "is_studyroom": "0",
            "alias": "사감실",
            "short_alias": "사감실",
            "iseokable": "1",
            "seatmap_id": null,
            "created_at": "2020-01-16 19:40:49",
            "updated_at": "2020-02-29 14:08:44",
            "deleted_at": null
        },
        {
            "id": "2",
            "is_studyroom": "0",
            "alias": "1-1반",
            "short_alias": "1-1반",
            "iseokable": "1",
            "seatmap_id": null,
            "created_at": "2020-01-16 19:40:49",
            "updated_at": "2020-01-26 22:30:18",
            "deleted_at": null
        },
        {
            "id": "3",
            "is_studyroom": "1",
            "alias": "양현재 1실",
            "short_alias": "1실",
            "iseokable": "1",
            "seatmap_id": "4",
            "created_at": "2020-01-16 19:40:49",
            "updated_at": "2020-02-29 19:22:54",
            "deleted_at": null
        },
        {
            "id": "6",
            "is_studyroom": "0",
            "alias": "연구부",
            "short_alias": null,
            "iseokable": "1",
            "seatmap_id": null,
            "created_at": "2020-02-28 19:07:02",
            "updated_at": "2020-02-28 19:44:22",
            "deleted_at": null
        }
    ]
}
{
    "status": 404,
    "error": 404,
    "messages": {
        "error": "Not Found"
    }
}

PreviousPeriodNext개요

Last updated 5 years ago

Was this helpful?