Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TJV Semestralka - Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Petr Seidl
TJV Semestralka - Server
Commits
ec2c5859
Commit
ec2c5859
authored
4 years ago
by
Petr Seidl
Browse files
Options
Downloads
Patches
Plain Diff
Update split request into multiple files
parent
4b97bd88
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/test/delete.http
+7
-0
7 additions, 0 deletions
src/test/delete.http
src/test/get.http
+19
-0
19 additions, 0 deletions
src/test/get.http
src/test/post.http
+14
-30
14 additions, 30 deletions
src/test/post.http
src/test/put.http
+26
-0
26 additions, 0 deletions
src/test/put.http
with
66 additions
and
30 deletions
src/test/delete.http
0 → 100644
+
7
−
0
View file @
ec2c5859
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
This diff is collapsed.
Click to expand it.
src/test/get.http
0 → 100644
+
19
−
0
View file @
ec2c5859
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
This diff is collapsed.
Click to expand it.
src/test/
reque
st
s
.http
→
src/test/
po
st.http
+
14
−
30
View file @
ec2c5859
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/test/put.http
0 → 100644
+
26
−
0
View file @
ec2c5859
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment