Skip to content
Snippets Groups Projects
Commit ec2c5859 authored by Petr Seidl's avatar Petr Seidl
Browse files

Update split request into multiple files

parent 4b97bd88
No related branches found
No related tags found
No related merge requests found
DELETE http://localhost:8080/api/v1/student/gpa/4
###
DELETE http://localhost:8080/api/v1/student/1
###
DELETE http://localhost:8080/api/v1/teacher/6
###
DELETE http://localhost:8080/api/v1/teacher/no-subject
\ No newline at end of file
GET http://localhost:8080/api/v1/teacher
###
GET http://localhost:8080/api/v1/subject
###
GET http://localhost:8080/api/v1/student
###
GET http://localhost:8080/api/v1/subject?teacherId=5
###
GET http://localhost:8080/api/v1/student/gpa/1.5
###
GET http://localhost:8080/api/v1/student/gpa/less?gpa=1.5
###
GET http://localhost:8080/api/v1/student/gpa/greater?gpa=1.5
###
GET http://localhost:8080/api/v1/student?firstName=Ted
###
GET http://localhost:8080/api/v1/student?lastName=Black
###
GET http://localhost:8080/api/v1/student?firstName=Druzky&lastName=Fusky
\ No newline at end of file
......@@ -52,50 +52,34 @@ Content-Type: application/json
 
###
 
POST http://localhost:8080/api/v1/subject
POST http://localhost:8080/api/v1/teacher
Content-Type: application/json
 
{
"name": "Java",
"lang": "CZ",
"teacherId": 5,
"students": [1,2,3]
"firstName": "Ned",
"lastName": "Flanders"
}
 
###
PUT http://localhost:8080/api/v1/subject/6
POST http://localhost:8080/api/v1/subject
Content-Type: application/json
 
{
"name": "Java TOP",
"name": "Java",
"lang": "CZ",
"teacherId": 5,
"students": [1,2,3]
}
 
###
GET http://localhost:8080/api/v1/student?firstName=Ted
 
###
GET http://localhost:8080/api/v1/student?firstName=Druzky
###
GET http://localhost:8080/api/v1/student?lastName=Black
###
GET http://localhost:8080/api/v1/subject?teacherId=5
POST http://localhost:8080/api/v1/subject
Content-Type: application/json
 
###
GET http://localhost:8080/api/v1/teacher
###
GET http://localhost:8080/api/v1/student
###
GET http://localhost:8080/api/v1/subject
###
GET http://localhost:8080/api/v1/subject/6
###
GET http://localhost:8080/api/v1/student/gpa/greater?gpa=1.5
###
GET http://localhost:8080/api/v1/student/gpa/less?gpa=1.5
###
GET http://localhost:8080/api/v1/student/gpa/1.5
\ No newline at end of file
{
"name": "C++",
"lang": "CZ",
"teacherId": 6,
"students": [1,2]
}
\ No newline at end of file
PUT http://localhost:8080/api/v1/subject/7
Content-Type: application/json
{
"name": "Java TOP",
"lang": "CZ",
"teacherId": 6,
"students": [1,2,3]
}
###
PUT http://localhost:8080/api/v1/student/1
Content-Type: application/json
{
"firstName": "Peter",
"lastName": "Parker",
"gpa": 1.0
}
###
PUT http://localhost:8080/api/v1/teacher/5
Content-Type: application/json
{
"firstName": "Tomas",
"lastName": "Jefferson"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment