그룹(부서) 조회

GET https://openapi.exosp.com/organization/v1/department

그룹(부서) 정보를 조회하는 API 입니다.

Response Schema

항목
타입
설명

code

int

응답 처리 결과 코드

0 : 성공, 1 : 실패

message

string

응답 처리 결과 메세지

success : 성공, 그 외 : 실패

body

object

body 상세

항목
타입
설명

departmentName

string

그룹 이름

departmentFull

string

그룹 전체 경로

subDepartments

array

하위 부서 상세

항목
타입
설명

departmentName

string

그룹 이름

departmentFull

string

그룹 전체 경로

subDepartments

array

Example

curl -X 'GET' \
  'https://openapi.exosp.com/organization/v1/department' \
  -H 'accept: application/json' \
  -H 'x-exosp-access: YOUR_ACCESS_KEY' \
  -H 'x-exosp-secret: YOUR_ACCESS_SECRET' 

{
  "code": 0,
  "message": "success",
  "body": {
    "name": "test",
    "fullName": "test",
    "subDepartments": [
      {
        "name": "test2",
        "fullName": "test > test2",
        "subDepartments": []
      },
      {
        "name": "test3",
        "fullName": "test > test3",
        "subDepartments": []
      },
      {
        "name": "test4",
        "fullName": "test > test4",
        "subDepartments": [
          {
            "name": "dev",
            "fullName": "test > test4 > dev",
            "subDepartments": []
          },
          {
            "name": "test5",
            "fullName": "test > test4 > test5",
            "subDepartments": []
          }
        ]
      },
      {
        "name": "test5",
        "fullName": "test > test5",
        "subDepartments": []
      }
    ]
  }
}

Last updated