Skip to content

Commit dae92ea

Browse files
committed
Clean up
1 parent 9b78f7b commit dae92ea

9 files changed

+40
-16
lines changed

pages/api.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ endpoint_sections:
130130
title: Subjects
131131
id: subjects
132132
layout: /subjects/subjects.yml
133+
-
134+
title: Subject Categories
135+
id: subject-categories
136+
layout: /subject-categories/subject-categories.yml
133137
-
134138
title: Tasks
135139
id: tasks
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"id": 51,
3+
"name": "Science"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Get a Subject Category
2+
3+
Returns the details of an existing subject category. You only need to specify the unique `id` of the Subject Category to get the correct details.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pprint, requests
2+
3+
headers = {'Authorization': 'token <API KEY>'}
4+
r = requests.get('https://secure.tutorcruncher.com/api/countries/<id>/', headers=headers)
5+
pprint.pprint(r.json())
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
sections:
2+
-
3+
title: Subject Category Object
4+
id: subject-category-object
5+
description: /subject-categories/subject-category.md
6+
attributes: /subject-categories/subject-category.yml
7+
response: /subject-categories/subject-category.json
8+
response_title: OBJECT
9+
-
10+
title: List all Subject Categories
11+
id: list-all-subject-categories
12+
description: /subject-categories/list-all-subject-categories.md
13+
code: /subject-categories/list-all-subject-categories.py
14+
code_type: GET
15+
code_url: /api/subject-categories/
16+
response: /subject-categories/list-all-subject-categories.json
17+
-
18+
title: Get a Subject Category
19+
id: get-a-subject-category
20+
description: /subject-categories/get-a-subject-category.md
21+
code: /subject-categories/get-a-subject-category.py
22+
code_type: GET
23+
code_url: /api/subject-categories/<id>/
24+
response: /subject-categories/get-a-subject-category.json

pages/subject-categories/subject-categorys.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)