我尝试使用api团队批准待批准的班次。
阅读API我认为正确的方法是https://docs.microsoft.com/en-us/graph/api/openshiftchangerequest-list?view=graph-rest-1.0
当我尝试使用图表探索此方法时,响应请求是:
struct MyView<Content: View>: View {
@Binding var matched: Bool
var nspace: Namespace.ID
let content: Content
init(matched: Binding<Bool>,
nspace: Namespace.ID,
@ViewBuilder content: @escaping () -> Content
) {
self._matched = matched
self.nspace = nspace
self.content = content()
}
var body: some View {
...
}
}
我的请求是https://graph.microsoft.com/v1.0/teams/MY_TEAM_ID_WITH_SHIFT/schedule/openShiftsRequests
我该怎么办?