Skip to content

Commit e334cad

Browse files
authored
Merge pull request #33 from CodeURJC-DAW-2021-22/develop
Develop to main
2 parents a5ad3a6 + 145ab62 commit e334cad

File tree

7 files changed

+599
-48
lines changed

7 files changed

+599
-48
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ hs_err_pid*
2626
.DS_Store
2727

2828
# Examples
29-
pruebas/
29+
pruebas/
30+
31+
# Docker compose database
32+
postgresql/

Article.postman_collection.json

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"info": {
3+
"_postman_id": "dca10921-3263-431d-8938-99309ef2bc48",
4+
"name": Article
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "https://localhost:8443/api/articles",
10+
"request": {
11+
"method": "GET",
12+
"header": [],
13+
"url": {
14+
"raw": "https://localhost:8443/api/articles",
15+
"protocol": "https",
16+
"host": [
17+
"localhost"
18+
],
19+
"port": "8443",
20+
"path": [
21+
"api",
22+
"articles"
23+
]
24+
}
25+
},
26+
"response": []
27+
},
28+
{
29+
"name": "https://localhost:8443/api/articles/6",
30+
"request": {
31+
"method": "GET",
32+
"header": [],
33+
"url": {
34+
"raw": "https://localhost:8443/api/articles/6",
35+
"protocol": "https",
36+
"host": [
37+
"localhost"
38+
],
39+
"port": "8443",
40+
"path": [
41+
"api",
42+
"articles",
43+
"6"
44+
]
45+
}
46+
},
47+
"response": []
48+
},
49+
{
50+
"name": "https://localhost:8443/api/articles",
51+
"request": {
52+
"method": "POST",
53+
"header": [],
54+
"body": {
55+
"mode": "raw",
56+
"raw": "{\r\n \"title\": \"pulsera\",\r\n \"description\": \"Las mejores pulseras del mundo\",\r\n \"price\": \"9,99\",\r\n \"city\": \"Barcelona\",\r\n \"postal_code\": \"28754\",\r\n}",
57+
"options": {
58+
"raw": {
59+
"language": "json"
60+
}
61+
}
62+
},
63+
"url": {
64+
"raw": "https://localhost:8443/api/articles",
65+
"protocol": "https",
66+
"host": [
67+
"localhost"
68+
],
69+
"port": "8443",
70+
"path": [
71+
"api",
72+
"articles"
73+
]
74+
}
75+
},
76+
"response": []
77+
},
78+
{
79+
"name": "https://localhost:844/api/articles/8",
80+
"request": {
81+
"method": "PUT",
82+
"header": [],
83+
"body": {
84+
"mode": "raw",
85+
"raw": "{\r\n \"title\": \"Llaves allen\",\r\n \"description\": \"Llaves allen especiales\",\r\n \"price\": \"29,99\",\r\n \"city\": \"Islas Canarias\",\r\n \"postal_code\": \"20923\",\r\n}",
86+
"options": {
87+
"raw": {
88+
"language": "json"
89+
}
90+
}
91+
},
92+
"url": {
93+
"raw": "https://localhost:8443/api/articles/8",
94+
"protocol": "https",
95+
"host": [
96+
"localhost"
97+
],
98+
"port": "8443",
99+
"path": [
100+
"api",
101+
"articles",
102+
"8"
103+
]
104+
}
105+
},
106+
"response": []
107+
},
108+
{
109+
"name": "https://localhost:8443/api/articles/8",
110+
"request": {
111+
"method": "DELETE",
112+
"header": [],
113+
"url": {
114+
"raw": "https://localhost:8443/api/articles/8",
115+
"protocol": "https",
116+
"host": [
117+
"localhost"
118+
],
119+
"port": "8443",
120+
"path": [
121+
"api",
122+
"articles",
123+
"8"
124+
]
125+
}
126+
},
127+
"response": []
128+
},
129+
{
130+
"name": "https://localhost:8443/api/articles/7/image",
131+
"request": {
132+
"method": "GET",
133+
"header": [],
134+
"url": {
135+
"raw": "https://localhost:8443/api/articles/7/image",
136+
"protocol": "https",
137+
"host": [
138+
"localhost"
139+
],
140+
"port": "8443",
141+
"path": [
142+
"api",
143+
"articles",
144+
"7",
145+
"image"
146+
]
147+
}
148+
},
149+
"response": []
150+
},
151+
{
152+
"name": "https://localhost:8443/api/articles/7/image",
153+
"request": {
154+
"method": "DELETE",
155+
"header": [],
156+
"url": {
157+
"raw": "https://localhost:8443/api/articles/7/image",
158+
"protocol": "https",
159+
"host": [
160+
"localhost"
161+
],
162+
"port": "8443",
163+
"path": [
164+
"api",
165+
"articles",
166+
"7",
167+
"image"
168+
]
169+
}
170+
},
171+
"response": []
172+
},
173+
{
174+
"name": "https://localhost:8443/api/articles/7/image",
175+
"request": {
176+
"method": "POST",
177+
"header": [],
178+
"body": {
179+
"mode": "formdata",
180+
"formdata": [
181+
{
182+
"key": "imageFile",
183+
"type": "file",
184+
"src": "/C:/Users/Usuario/Desktop/DAW/DESPERDICIOS/linterna.jpg"
185+
}
186+
]
187+
},
188+
"url": {
189+
"raw": "https://localhost:8443/api/articles/7/image",
190+
"protocol": "https",
191+
"host": [
192+
"localhost"
193+
],
194+
"port": "8443",
195+
"path": [
196+
"api",
197+
"articles",
198+
"7",
199+
"image"
200+
]
201+
}
202+
},
203+
"response": []
204+
}
205+
]
206+
}

Graphic.postman_collection.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"info": {
3+
"_postman_id": "0d0ea52c-75fc-40a3-ac9e-d4bbbc7b6859",
4+
"name": "Graphic",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "https://localhost:8443/api/graphic",
10+
"protocolProfileBehavior": {
11+
"disableBodyPruning": true
12+
},
13+
"request": {
14+
"method": "GET",
15+
"header": [],
16+
"body": {
17+
"mode": "raw",
18+
"raw": "{\r\n \"description\": \"probandojeje\",\r\n \"email\": \"[email protected]\"\r\n}",
19+
"options": {
20+
"raw": {
21+
"language": "json"
22+
}
23+
}
24+
},
25+
"url": {
26+
"raw": "https://localhost:8443/api/graphic",
27+
"protocol": "https",
28+
"host": [
29+
"localhost"
30+
],
31+
"port": "8443",
32+
"path": [
33+
"api",
34+
"graphic"
35+
]
36+
}
37+
},
38+
"response": []
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)