Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/flexpath-unit-2-final.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions java-springboot-final/.idea/dataSources.local.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions java-springboot-final/.idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions java-springboot-final/.idea/dataSources/data_sources_history.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions java-springboot-final/.idea/data_source_mapping.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions java-springboot-final/.idea/sqldialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions java-springboot-final/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>25</source>
<target>25</target>
</configuration>
Comment on lines +98 to +101
</plugin>
</plugins>
</build>

Expand Down
11 changes: 11 additions & 0 deletions java-springboot-final/postman/.postman/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Use this workspace to collaborate
workspace:
id: 3125f098-2d4b-4cee-82d6-fdf6b8cfbf60

localResources:
collections:
- ../web-store.postman_collection.json

cloudResources:
collections:
../postman/collections/web-store: 7aa67b5d-f01a-499d-908b-d2893184bd9c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$kind: collection
description: ""
variables:
token: ""
password: admin
auth:
- id: 0868ff0e-f89f-4f44-9f70-6a5cf6e40fc1
type: bearer
name: bearer auth
credentials:
token: "{{token}}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$kind: collection
order: 5000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$kind: http-request
url: http://localhost:8080/api/order-items
method: POST
body:
type: json
content: |-
{
"orderId": 1,
"productId": 1,
"quantity": 1
}
order: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/order-items/1
method: DELETE
order: 5000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/order-items
method: GET
order: 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/order-items/1
method: GET
order: 2000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$kind: http-request
url: http://localhost:8080/api/order-items/1
method: PUT
body:
type: json
content: |-
{
"orderId": 1,
"productId": 1,
"quantity": 2
}
order: 4000
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$kind: collection
order: 4000
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$kind: http-request
url: http://localhost:8080/api/orders
method: POST
body:
type: json
content: |-
{
"username": "admin"
}
order: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/orders/6
method: DELETE
order: 5000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/orders
method: GET
order: 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/orders/1
method: GET
order: 2000
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$kind: http-request
url: http://localhost:8080/api/orders/6
method: PUT
body:
type: json
content: |-
{
"username" : "test"
}
order: 4000
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$kind: collection
order: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$kind: http-request
url: http://localhost:8080/api/products
method: POST
body:
type: json
content: |-
{
"name": "test",
"price": 100
}
order: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/products/6
method: DELETE
order: 5000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/products
method: GET
order: 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:8080/api/products/1
method: GET
order: 2000
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$kind: http-request
url: http://localhost:8080/api/products/6
method: PUT
body:
type: json
content: |-
{
"name": "test",
"price": 200
}
order: 4000
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$kind: collection
order: 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$kind: http-request
name: Change Password To "admin"
url: http://localhost:8080/api/profile/change-password
method: PUT
body:
type: json
content: admin
scripts:
- type: afterResponse
code: pm.collectionVariables.set('password', 'admin');
language: text/javascript
order: 4000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$kind: http-request
name: Change Password To "test"
url: http://localhost:8080/api/profile/change-password
method: PUT
body:
type: json
content: test
scripts:
- type: afterResponse
code: pm.collectionVariables.set('password', 'test');
language: text/javascript
order: 3000
Loading