Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.aunnn #27

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
c8d65bd
Edit pass in progress.
Lauragra Nov 1, 2017
be9ca11
Edits in progress.
Lauragra Nov 2, 2017
9128bc3
Finished initial edit pass on overview topic.
Lauragra Nov 2, 2017
6dbe653
Added links.
Lauragra Nov 2, 2017
2a9e691
Edit pass.
Lauragra Nov 2, 2017
eec1c06
Edit pass.
Lauragra Nov 2, 2017
d02705c
Edit.
Lauragra Nov 2, 2017
f39324b
Edit pass.
Lauragra Nov 2, 2017
938a12d
Edit pass.
Lauragra Nov 7, 2017
0e4cc29
Edit pass.
Lauragra Nov 7, 2017
e42ed6a
Edit pass.
Lauragra Nov 7, 2017
522df71
Edit pass.
Lauragra Nov 8, 2017
b5db9ac
Modifications for inheritance break in educationUser.
garethj-msft Nov 8, 2017
8212f7e
Fixed typo.
Lauragra Nov 8, 2017
bd5f37b
Fixed formatting.
Lauragra Nov 8, 2017
0fa0376
Merge pull request #1 from garethj-msft/garethj/betaRostering
Lauragra Nov 8, 2017
bec91c9
Edit pass.
Lauragra Nov 8, 2017
aeb11f3
Assignments resourceUrl is now a function and not a property
kwiggen Nov 8, 2017
131bdc1
Update topic organization.
Lauragra Nov 8, 2017
9f274d7
Edits.
Lauragra Nov 8, 2017
5ce1bd2
Edits.
Lauragra Nov 9, 2017
71f9d73
Edit.
Lauragra Nov 9, 2017
14c7565
add request body
kwiggen Nov 9, 2017
30294dc
Merge branch 'KWUpdates' of https://github.com/kwiggen/O365-EDU-Tools…
kwiggen Nov 9, 2017
62ddb45
Merge pull request #2 from kwiggen/KWUpdates
Lauragra Nov 9, 2017
d1e007f
Edit pass.
Lauragra Nov 9, 2017
69db110
Edit pass.
Lauragra Nov 9, 2017
4130ff7
Deleted note.
Lauragra Nov 9, 2017
68b9a00
Removed note.
Lauragra Nov 9, 2017
52300aa
Edit pass.
Lauragra Nov 9, 2017
0ff747f
Edits.
Lauragra Nov 9, 2017
55d6588
Edit.
Lauragra Nov 9, 2017
ca1c369
Edit pass.
Lauragra Nov 9, 2017
c1866bb
Minor updates to terminology.
Lauragra Nov 10, 2017
d822021
Added links to assignment and rostering resources and APIs.
Lauragra Nov 11, 2017
7033643
Updates.
Lauragra Nov 11, 2017
fb27d06
Edit pass.
Lauragra Nov 11, 2017
373debe
Edit.
Lauragra Nov 11, 2017
0122d0a
Add file.
Lauragra Nov 13, 2017
de891b5
Fix typo.
Lauragra Nov 13, 2017
1c76a7f
Fix order of the APIs
Lauragra Nov 13, 2017
69745ee
Test link fix.
Lauragra Nov 13, 2017
37452ac
Test link fix.
Lauragra Nov 13, 2017
6452778
test link fix.
Lauragra Nov 13, 2017
a700aee
Update links.
Lauragra Nov 13, 2017
b03f4c1
Fix link.
Lauragra Nov 13, 2017
b0af6ab
Deleted files.
Lauragra Nov 13, 2017
08148d8
Update heading.
Lauragra Nov 13, 2017
a7f64a5
Updated authorization section.
Lauragra Nov 13, 2017
10b7ee4
Made text more concise.
Lauragra Nov 13, 2017
720a5ab
Edits.
Lauragra Nov 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions EDUGraphAPIs/Assignments/GettingStarted.md

This file was deleted.

16 changes: 10 additions & 6 deletions EDUGraphAPIs/Assignments/api/educationassignment_delete.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Delete educationAssignment

Use this API to delete an existing Assignment. No request body is necessary. Only Teachers within a Class can delete Assignments.
Delete an existing assignment. Only teachers within a class can delete assignments.

## Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](../../../concepts/permissions_reference.md).
Expand All @@ -13,9 +13,9 @@ One of the following permissions is required to call this API. To learn more, in

## HTTP request

```http
<!-- { "blockType": "ignored" } -->

```http
DELETE /education/classes/<id>/assignments/<id>
```
## Request headers
Expand All @@ -28,26 +28,30 @@ Do not supply a request body for this method.


## Response
If successful, this method returns `204, No Content` response code. It does not return anything in the response body.
If successful, this method returns a `204 No Content` response code. It does not return anything in the response body.

## Example
##### Request
Here is an example of the request.
The following is an example of the request.

```http
<!-- {
"blockType": "request",
"name": "delete_educationassignment"
}-->

```http
DELETE https://graph.microsoft.com/beta/education/classes/<id>/assignments/<id>
```
##### Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
The following is an example of the response.

>**Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.

<!-- {
"blockType": "response",
"truncated": true
} -->

```http
HTTP/1.1 204 No Content
```
Expand Down
15 changes: 6 additions & 9 deletions EDUGraphAPIs/Assignments/api/educationassignment_get.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Get educationAssignment

Use this API to get an assignment properties and its relationships. Students can only see assignments assigned to them while teachers can see all assignments in a class.
Get the properties and relationships of an assignment. Students can only see assignments assigned to them; teachers can see all assignments in a class.

## Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](../../../concepts/permissions_reference.md).



>**Note:** Due to a bug, the graph will return educationItemBody for the instructions property. This is an exact duplicate of the itemBody that
is already found on the graph. When the code moves to production, this will be updated. For clients who simply use the json being sent back and forth to the graph, there should be no work necessary to handle this change.


|Permission type | Permissions (from least to most privileged) |
|:--------------------|:---------------------------------------------------------|
|Delegated (work or school account) | EduAssignments.ReadBasic, EduAssignments.ReadWriteBasic, EduAssignments.Read, EduAssignments.ReadWrite |
Expand All @@ -37,7 +32,7 @@ Do not supply a request body for this method.
If successful, this method returns a `200 OK` response code and [educationAssignment](../resources/educationassignment.md) object in the response body.
## Example
##### Request
Here is an example of the request.
The following is an example of the request.
<!-- {
"blockType": "request",
"name": "get_educationassignment"
Expand All @@ -46,7 +41,10 @@ Here is an example of the request.
GET https://graph.microsoft.com/beta/education/classes/<id>/assignments/<id>
```
##### Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
The following is an example of the response.

>**Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.

<!-- {
"blockType": "response",
"truncated": true,
Expand All @@ -73,7 +71,6 @@ Content-length: 279
"instructions": {"@odata.type": "microsoft.graph.itemBody"},
"lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
"lastModifiedDateTime": "String (timestamp)",
"resourcesFolderUrl": "String",
"status": "string"
}
```
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# educationAssignment: getResourcesFolderUrl

This function returns the OneDrive URL where all file-based resources (Word, Excel, and so on) should be uploaded.
Note that files must be located in this folder in order to be added as resources. Only a teacher in the class can determine what files to upload.

## Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](../../../concepts/permissions_reference.md).

|Permission type | Permissions (from least to most privileged) |
|:--------------------|:---------------------------------------------------------|
|Delegated (work or school account) | EduAssignments.ReadBasic, EduAssignments.Read |
|Delegated (personal Microsoft account) | Not supported. |
|Application | Not supported. |

## HTTP request
<!-- { "blockType": "ignored" } -->
```http
POST /education/classes/<id>/assignments/<id>/getResourcesFolderUrl

```
## Request headers
| Header | Value |
|:---------------|:--------|
| Authorization | Bearer {token}. Required. |

## Request body
Do not supply a request body for this method.
## Response
If successful, this method returns a `200 Ok` response code. The body will contain the OneDrive URL of a folder in which to put all file-based resources.

## Example
The following example shows how to call this API.
##### Request
The following is an example of a request.
<!-- {
"blockType": "request",
"name": "educationassignment_publish"
}-->
```http
POST https://graph.microsoft.com/beta/education/classes/<id>/assignments/<id>/getResourcesFolderUrl
```

##### Response
The following is an example of a response.

<!-- {
"blockType": "response",
"truncated": true,
"@odata.type": "microsoft.graph.educationAssignment"
} -->
```http
HTTP/1.1 200 OK
Content-type: application/json
Content-length: 279

{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Edm.String",
"value": "https://graph.microsoft.com/v1.0/drives/b!8-QjN2tsv0WyGnTv7vOvnQkmGHbbeMNLqYKONmHLVnvCVmBYIGpeT456457AdW9f/items/017NJZI25NOB5XZNLABF7646XAMDZTQQ6T"
}
```

<!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79
2015-10-25 14:57:30 UTC -->
<!-- {
"type": "#page.annotation",
"description": "educationAssignment: publish",
"keywords": "",
"section": "documentation",
"tocPath": ""
}-->
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ This method supports the [OData Query Parameters](http://graph.microsoft.io/docs
## Request body
Do not supply a request body for this method.
## Response
If successful, this method returns a `200 OK` response code and collection of [educationAssignmentResource](../resources/educationassignmentresource.md) objects in the response body.
If successful, this method returns a `200 OK` response code and a collection of [educationAssignmentResource](../resources/educationassignmentresource.md) objects in the response body.
## Example
##### Request
Here is an example of the request.
The following is an example of the request.
<!-- {
"blockType": "request",
"name": "get_resources"
Expand All @@ -39,7 +39,10 @@ Here is an example of the request.
GET https://graph.microsoft.com/beta/education/classes/<id>/assignments/<id>/resources
```
##### Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
The following is an example of the response.

>**Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.

<!-- {
"blockType": "response",
"truncated": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# List submissions

List all the submissions associated with this assignment. A teacher can get all of the submissions while a student can only get submissions that they are associated with.
List all the submissions associated with this assignment. A teacher can get all the submissions while a student can only get submissions that they are associated with.

## Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](../../../concepts/permissions_reference.md).
Expand Down Expand Up @@ -30,7 +30,7 @@ Do not supply a request body for this method.
If successful, this method returns a `200 OK` response code and collection of [educationSubmission](../resources/educationsubmission.md) objects in the response body.
## Example
##### Request
Here is an example of the request.
The following is an example of the request.
<!-- {
"blockType": "request",
"name": "get_submissions"
Expand All @@ -39,7 +39,10 @@ Here is an example of the request.
GET https://graph.microsoft.com/beta/education/classes/<id>/assignments/<id>/submissions
```
##### Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
The following is an example of the response.

>**Note:** The response object shown here might be shortened for readability. All of the properties will be returned from an actual call.

<!-- {
"blockType": "response",
"truncated": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create educationAssignmentResource

Create an assignment resource. The **Assignment** resource is a wrapper around the resource that the teacher wants to add to the assignment with the "distributeForStudentWork" flag which indicates whether this resource should be automatically copied to each student's submission during the assignment process. Items which indicate distribution will be the basis for work that each student should modify to complete the assignment. The resource itself has an @odata.type to indicate which type of resource is being created. Note that file based resources must first be uploaded to the assignments "resourceFolder"
Create an [assignment resource](../resources/educationassignmentresource.md). The resource itself has an @odata.type to indicate which type of resource is being created. Note that file-based resources must first be uploaded to the assignments **resourceFolder**.

## Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](../../../concepts/permissions_reference.md).
Expand All @@ -23,15 +23,15 @@ POST /education/classes/<id>/assignments/<id>/resources
| Content-Type | application/json |

## Request body
In the request body, supply a JSON representation of [educationAssignmentResource](../resources/educationassignmentresource.md) object.
In the request body, supply a JSON representation of the [educationAssignmentResource](../resources/educationassignmentresource.md) object.


## Response
If successful, this method returns `201, Created` response code and [educationAssignmentResource](../resources/educationassignmentresource.md) object in the response body.
If successful, this method returns a `201 Created` response code and an [educationAssignmentResource](../resources/educationassignmentresource.md) object in the response body.

## Example
##### Request
Here is an example of the request.
The following is an example of the request.
<!-- {
"blockType": "request",
"name": "create_educationassignmentresource_from_educationassignment"
Expand All @@ -50,11 +50,12 @@ Content-length: 822
}
}
```
In the request body, supply a JSON representation of [educationAssignmentResource](../resources/educationassignmentresource.md) object.
In the request body, supply a JSON representation of the [educationAssignmentResource](../resources/educationassignmentresource.md) object.
##### Response
Here is an example of the response.
The following is an example of the response.

>**Note:** The response object shown here might be shortened for readability. All of the properties will be returned from an actual call.

>**Note:** The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

```http
<!-- {
Expand Down
11 changes: 6 additions & 5 deletions EDUGraphAPIs/Assignments/api/educationassignment_publish.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# educationAssignment: publish

This action changes the state of an assignment from its original draft status to the published status. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment nor will there be any submission objects. By calling this api, submission objects will be created and the assignment will show up in the student's list.
This action changes the state of an assignment from its original draft status to the published status. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. When you call this API submission object is created and the assignment appears in the student's list.

## Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](../../../concepts/permissions_reference.md).
Expand All @@ -25,12 +25,12 @@ POST /education/classes/<id>/assignments/<id>/publish
## Request body

## Response
If successful, this method returns `204, No Content` response code. It does not return anything in the response body.
If successful, this method returns a `204 No Content` response code. It does not return anything in the response body.

## Example
Here is an example of how to call this API.
The following example shows how to call this API.
##### Request
Here is an example of the request.
The following is an example of a request.
<!-- {
"blockType": "request",
"name": "educationassignment_publish"
Expand All @@ -40,7 +40,8 @@ POST https://graph.microsoft.com/beta/education/classes/<id>/assignments/<id>/pu
```

##### Response
If successful, this method returns `204, No Content` response code. It does not return anything in the response body.
The following is an example of a response.

<!-- {
"blockType": "response",
"truncated": true,
Expand Down
Loading