Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 24d2ef9

Browse files
author
Caitlin Bales (MSFT)
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into dev
2 parents 1836a42 + 3d3bb0d commit 24d2ef9

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

docs/custom-queries.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Making Custom Calls to Graph
2+
3+
The Graph SDK attempts to enable all available scenarios through Microsoft Graph. There are times, however, through errors or custom Graph functionality, that makes calling the desired endpoint is not possible through the provided requests and builders.
4+
5+
## Creating a custom request
6+
You can extend BaseRequest to create a custom request:
7+
8+
```Java
9+
public class CustomRequest extends BaseRequest {
10+
11+
public CustomRequest(final String requestUrl, final IBaseClient client, final java.util.List<Option> requestOptions) {
12+
super(requestUrl, client, requestOptions, Void.class);
13+
}
14+
15+
public String get() throws ClientException {
16+
return send(HttpMethod.GET, null);
17+
}
18+
}
19+
```
20+
Then you can instantiate a new request to use to call Graph:
21+
22+
```Java
23+
CustomRequest request = new CustomRequest("https://graph.microsoft.com/v1.0/custom", graphServiceClient, requestOptions);
24+
request.get();
25+
```

docs/known-issues.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Known Issues
2+
Because of our close partnership with workload teams who surface API functionality through Graph, it is not always appropriate or feasible to introduce fixes to missing or broken functionality.
3+
4+
## No Annotation Support
5+
[OData](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part3-csdl/odata-v4.0-errata03-os-part3-csdl-complete.html#_Toc453752630) allows workloads to specify additional information about their API surface including both functional and non-functional stipulations. We currently do not support these annotations in the [Generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator), due to hierarchical inheritance issues regarding said annotations. Therefore, there may be methods that do not produce valid queries to Graph. Please refer to the [Graph Docs](https://developer.microsoft.com/en-us/graph/docs/concepts/overview) as the source of truth in these discrepancies.
6+
7+
## PATCH of OneNote Pages
8+
OneNote currently defines the ability to PATCH a page's content (```PATCH https://graph.microsoft.com/v1.0/me/onenote/pages/id/content```), which is currently not supported by the Android SDK. If you are looking to PATCH JSON to a page, you can use the ```getOnenotePatchContent``` method to submit JSON data. If you are looking to PATCH multipart data, you cannot use the request builders given. Refer to the [documentation on making custom queries](https://github.com/microsoftgraph/msgraph-sdk-android/blob/master/docs/custom-queries.md) using the SDK.

0 commit comments

Comments
 (0)