REST API testing script
This commit is contained in:
parent
d0bf3eae0f
commit
b4042cbf15
12 changed files with 317 additions and 36 deletions
22
tests/01-get_courses.json
Normal file
22
tests/01-get_courses.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"title": "UlmAPI",
|
||||
"time": "18:00",
|
||||
"day": "Monday",
|
||||
"kind": "Lab",
|
||||
"place": "O27/343",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"title": "CCC Ulm",
|
||||
"time": "20:00",
|
||||
"day": "Monday",
|
||||
"kind": "Meeting",
|
||||
"place": "Cafe Einstein",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 1
|
||||
}
|
||||
]
|
10
tests/02-get_course-0.json
Normal file
10
tests/02-get_course-0.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"title": "UlmAPI",
|
||||
"time": "18:00",
|
||||
"day": "Monday",
|
||||
"kind": "Lab",
|
||||
"place": "O27/343",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 0
|
||||
}
|
10
tests/03-get_course-1.json
Normal file
10
tests/03-get_course-1.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"title": "CCC Ulm",
|
||||
"time": "20:00",
|
||||
"day": "Monday",
|
||||
"kind": "Meeting",
|
||||
"place": "Cafe Einstein",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 1
|
||||
}
|
10
tests/04-post_course.json
Normal file
10
tests/04-post_course.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
32
tests/05-get_courses.json
Normal file
32
tests/05-get_courses.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
[
|
||||
{
|
||||
"title": "UlmAPI",
|
||||
"time": "18:00",
|
||||
"day": "Monday",
|
||||
"kind": "Lab",
|
||||
"place": "O27/343",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"title": "CCC Ulm",
|
||||
"time": "20:00",
|
||||
"day": "Monday",
|
||||
"kind": "Meeting",
|
||||
"place": "Cafe Einstein",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 1
|
||||
},
|
||||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
||||
]
|
10
tests/06-get_course-2.json
Normal file
10
tests/06-get_course-2.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
22
tests/07-delete_course-1.json
Normal file
22
tests/07-delete_course-1.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"title": "UlmAPI",
|
||||
"time": "18:00",
|
||||
"day": "Monday",
|
||||
"kind": "Lab",
|
||||
"place": "O27/343",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
||||
]
|
22
tests/08-get_courses.json
Normal file
22
tests/08-get_courses.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"title": "UlmAPI",
|
||||
"time": "18:00",
|
||||
"day": "Monday",
|
||||
"kind": "Lab",
|
||||
"place": "O27/343",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
||||
]
|
10
tests/09-put_course-2.json
Normal file
10
tests/09-put_course-2.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "meeting",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
22
tests/10-get_courses.json
Normal file
22
tests/10-get_courses.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"title": "UlmAPI",
|
||||
"time": "18:00",
|
||||
"day": "Monday",
|
||||
"kind": "Lab",
|
||||
"place": "O27/343",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"title": "FIN Sitzung",
|
||||
"time": "18:00",
|
||||
"day": "Wed",
|
||||
"kind": "meeting",
|
||||
"place": "",
|
||||
"prof": "",
|
||||
"turnin": "",
|
||||
"id": 2
|
||||
}
|
||||
]
|
Reference in a new issue