260715_0
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
---
|
||||
type: page-api
|
||||
status: stable
|
||||
page_id: B01_Dashboard
|
||||
related_pages: ["[[B01_Dashboard/B01_frontend]]", "[[B01_Dashboard/B01_backend]]", "[[B01_Dashboard/B01_db]]"]
|
||||
last_updated: 2026-07-12
|
||||
source: 상위 프로젝트 B01_Dashboard_Router.py 실 코드 직접 확인 (2026-07-12)
|
||||
---
|
||||
|
||||
# B01_Dashboard — API
|
||||
|
||||
기본 prefix: `/api/dashboard` (`B01_Dashboard_Router.py:57`). 공통 인증·오류 형식은 [[../../concepts/auth_rbac]], [[../../concepts/api_common]] 참조.
|
||||
|
||||
## 사용자·회사
|
||||
| 항목 | 위치 | 역할 |
|
||||
|---|---|---|
|
||||
| `GET /me` | `B01_Dashboard_Router.py:101` | 로그인 사용자 대시보드 정보 조회 |
|
||||
| `PATCH /me` | `B01_Dashboard_Router.py:109` | 내 기본정보 수정 |
|
||||
| `GET /user/projects` | `B01_Dashboard_Router.py:118` | 내 프로젝트와 workflow 상태 조회 |
|
||||
| `GET /user/company` | `B01_Dashboard_Router.py:123` | 소속 회사 조회 |
|
||||
| `GET /user/companies` | `B01_Dashboard_Router.py:128` | 가입 대상 회사 검색 |
|
||||
| `POST /user/company/create` | `B01_Dashboard_Router.py:137` | 회사 생성 후 생성자 연결 |
|
||||
| `POST /user/company/join` | `B01_Dashboard_Router.py:146` | 회사 가입 신청 |
|
||||
|
||||
## 회사 관리자
|
||||
| 항목 | 위치 | 역할 |
|
||||
|---|---|---|
|
||||
| `GET /admin/members` | `B01_Dashboard_Router.py:155` | 회사 팀원 목록 |
|
||||
| `POST /admin/members` | `B01_Dashboard_Router.py:163` | 이메일로 팀원 추가 |
|
||||
| `DELETE /admin/members/{user_id}` | `B01_Dashboard_Router.py:174` | 팀원 회사 연결 해제 |
|
||||
| `GET /admin/join-requests` | `B01_Dashboard_Router.py:183` | 회사 가입 신청 목록 |
|
||||
| `PATCH /admin/join-requests/{request_id}` | `B01_Dashboard_Router.py:188` | 가입 신청 승인·거절 |
|
||||
| `GET /admin/projects` | `B01_Dashboard_Router.py:206` | 회사 프로젝트 목록 |
|
||||
|
||||
## 프로젝트·자동화
|
||||
| 항목 | 위치 | 역할 |
|
||||
|---|---|---|
|
||||
| `PUT /projects/{project_id}` | `B01_Dashboard_Router.py:214` | 프로젝트 기본정보 수정 |
|
||||
| `DELETE /projects/{project_id}` | `B01_Dashboard_Router.py:230` | SYSTEM_ADMIN 프로젝트 소프트 삭제 |
|
||||
| `GET /projects/{project_id}/automations` | `B01_Dashboard_Router.py:366` | 자동화 목록; USER 차단 |
|
||||
| `POST /projects/{project_id}/automations` | `B01_Dashboard_Router.py:379` | 자동화 생성 |
|
||||
| `PUT /automations/{automation_id}` | `B01_Dashboard_Router.py:396` | 자동화 수정 |
|
||||
| `DELETE /automations/{automation_id}` | `B01_Dashboard_Router.py:414` | 자동화 삭제 |
|
||||
| `POST /automations/{automation_id}/execute` | `B01_Dashboard_Router.py:429` | 자동화 실행시각 기록 |
|
||||
|
||||
## 시스템 관리자
|
||||
| 항목 | 위치 | 역할 |
|
||||
|---|---|---|
|
||||
| `GET /admin/companies` | `B01_Dashboard_Router.py:255` | 전체 회사 조회 |
|
||||
| `POST /admin/companies` | `B01_Dashboard_Router.py:261` | 시스템 관리자 회사 생성 |
|
||||
| `GET /admin/users` | `B01_Dashboard_Router.py:270` | 전체 사용자 조회 |
|
||||
| `PATCH /admin/users/{user_id}/role` | `B01_Dashboard_Router.py:276` | 역할 변경과 마지막 ADMIN 보호 |
|
||||
| `PUT /admin/users/{user_id}` | `B01_Dashboard_Router.py:294` | 사용자 관리정보 수정 |
|
||||
| `PATCH /admin/users/{user_id}/company` | `B01_Dashboard_Router.py:313` | 사용자 회사 배정·해제 |
|
||||
| `GET /admin/join-requests-all` | `B01_Dashboard_Router.py:325` | 전체 가입 신청 조회 |
|
||||
| `PATCH /admin/join-requests/{request_id}/approve` | `B01_Dashboard_Router.py:331` | 시스템 관리자 가입 승인 |
|
||||
| `GET /admin/audit-logs` | `B01_Dashboard_Router.py:341` | 시스템 감사 로그 페이지 조회 |
|
||||
| `GET /admin/resources` | `B01_Dashboard_Router.py:351` | 1~90일 리소스 통계 조회 |
|
||||
| `GET /admin/projects-all` | `B01_Dashboard_Router.py:360` | 전체 프로젝트 조회 |
|
||||
Reference in New Issue
Block a user