Skip to content

Commit

Permalink
Subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed Jun 20, 2022
1 parent 89a123e commit 02126fd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ _Warning: without these headers, the request will fail._
##### Periods
- **[<code>GET</code> v1/students/_{studentId}_/periods](Periods/periods.md)**
##### Subjects
- **[<code>GET</code> v1/students/_{studentId}_/subjects]()**
- **[<code>GET</code> v1/students/_{studentId}_/subjects](Subjects/subjects.md)**
##### Documents
- **[<code>POST</code> v1/students/_{studentId}_/documents](Documents/documents.md)**
- **[<code>POST</code> v1/students/_{studentId}_/documents/check/_{hash}_](Documents/check%20document.md)**
Expand Down
22 changes: 22 additions & 0 deletions Subjects/subjects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Response
```json
{
"subjects": [
{
"id": 217039,
"description": "STORIA",
"order": 19,
"teachers": [
{
"teacherId": "A86047",
"teacherName": "COGNOME NOME"
},
{
"teacherId": "A5520507",
"teacherName": "COGNOME NOME"
}
]
}
]
}
```
2 changes: 1 addition & 1 deletion Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def password_():
i_ = intestazione.copy()
i_["Z-Auth-Token"] = token
print(json.dumps(requests.get(
"https://web.spaggiari.eu/rest/v1/students/{}/periods".format(
"https://web.spaggiari.eu/rest/v1/students/{}/subjects".format(
id_().removeprefix("S"),
),
headers=i_
Expand Down

0 comments on commit 02126fd

Please sign in to comment.