개발자를 위한 Azure 보안 구현
Anushika Agarwal
Cloud Data Engineer
여러 번 나눠 장보기 운반
더 가볍고, 빠르고, 안전함


/v1.0/users (_기본_): 페이지당 100개 반환

쿼리 매개변수
$top: 페이지당 항목 수
$skip: 오프셋; 처음 N개 이후부터 시작

https://graph.microsoft.com/v1.0/groups?$top=2

하나의 페이로드 -> 하나의 응답에 모두 포함
장점
제한

엔드포인트
https://graph.microsoft.com/v1.0/$batchusers 같은 특정 리소스 대신 $batch 사용

requestsrequests는 배열(최대 20개 항목){ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
각 요청 항목에 필요
id: 응답 매칭용 고유 라벨method: (GET/POST/PATCH/DELETE)url: 상대 경로헤더: Content-Type: application/json
{ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
각 응답 항목에 포함
id: 원 요청과 매칭
status: 해당 항목의 HTTP 상태
200: OK 403: Forbiddenheaders: 예) Content-Type
body: 데이터 또는 오류 객체
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
개발자를 위한 Azure 보안 구현