Skip to content

Commit c3b0efe

Browse files
committed
Minor Corrections
1 parent 5f1ef95 commit c3b0efe

File tree

5 files changed

+157
-30
lines changed

5 files changed

+157
-30
lines changed

src/main/resources/static/custom_bootstrap.min.css

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,12 @@
11
/*! `Custom` Bootstrap 4 theme */
2-
@import url(https://use.fontawesome.com/releases/v5.0.10/css/all.css);
32
/*!
43
* Bootstrap v4.5.0 (https://getbootstrap.com/)
54
* Copyright 2011-2020 The Bootstrap Authors
65
* Copyright 2011-2020 Twitter, Inc.
76
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
87
*/
98
:root {
10-
--blue: #007bff;
11-
--indigo: #6610f2;
12-
--purple: #6f42c1;
13-
--pink: #e83e8c;
14-
--red: #dc3545;
15-
--orange: #fd7e14;
16-
--yellow: #ffc107;
17-
--green: #28a745;
18-
--teal: #20c997;
19-
--cyan: #17a2b8;
20-
--white: #fff;
21-
--gray: #6c757d;
22-
--gray-dark: #343a40;
239
--primary: #408293;
24-
--secondary: #868e96;
25-
--success: #28a745;
26-
--info: #17a2b8;
27-
--warning: #ffc107;
28-
--danger: #dc3545;
29-
--light: #f8f9fa;
30-
--dark: #343a40;
31-
--breakpoint-xs: 0;
32-
--breakpoint-sm: 576px;
33-
--breakpoint-md: 768px;
34-
--breakpoint-lg: 992px;
35-
--breakpoint-xl: 1200px;
36-
--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
37-
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
3810
}
3911

4012
*,

src/main/resources/static/index.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,16 @@
5656

5757
.icon{
5858
font-size: 19px;
59+
}
60+
61+
.table thead th{
62+
background-color: white;
63+
}
64+
65+
.table-striped tbody tr:nth-of-type(odd){
66+
background-color: rgba(0, 0, 0, 0.10);
67+
}
68+
69+
.table-striped tbody tr:nth-of-type(even){
70+
background-color: white;
5971
}

src/main/resources/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
<div class="main-section">
4141
<div class="col-md-12">
4242
<div class="row Header">
43-
<div class="col-sm-10">
43+
<div class="col-sm-8">
4444
<H4 class="headertitle">CRUD Empleats</H4>
4545
<h6>Exercici realitzat utilitzant: Spring Api Rest, Javascript, jquery i Bootstrap.</h6>
4646
</div>
47-
<div class="col-sm-2 my-auto">
47+
<div class="col-sm-4 my-auto text-right">
4848
<button type="button" class="btn btn-primary add" data-toggle="modal" data-target="#modal" onclick="newEmployee();">
4949
<i class="bi bi-person-plus-fill icon" style="margin-right: 5px;"></i>
5050
Nou Empleat</button>
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"info": {
3+
"_postman_id": "01c27239-82b2-4c05-8447-d7546da1aba9",
4+
"name": "M13-Http-Service",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "Get All",
10+
"request": {
11+
"method": "GET",
12+
"header": [],
13+
"url": {
14+
"raw": "{{ip}}{{port}}/EmployeeList",
15+
"host": [
16+
"{{ip}}{{port}}"
17+
],
18+
"path": [
19+
"EmployeeList"
20+
]
21+
}
22+
},
23+
"response": []
24+
},
25+
{
26+
"name": "Get ByID",
27+
"request": {
28+
"method": "GET",
29+
"header": [],
30+
"url": {
31+
"raw": "{{ip}}{{port}}/EmployeeList/2",
32+
"host": [
33+
"{{ip}}{{port}}"
34+
],
35+
"path": [
36+
"EmployeeList",
37+
"2"
38+
]
39+
}
40+
},
41+
"response": []
42+
},
43+
{
44+
"name": "Create Employee",
45+
"request": {
46+
"method": "POST",
47+
"header": [],
48+
"body": {
49+
"mode": "raw",
50+
"raw": "{\n \"name\":\"Laura\",\n \"job\":\"Programador_Senior\"\n}",
51+
"options": {
52+
"raw": {
53+
"language": "json"
54+
}
55+
}
56+
},
57+
"url": {
58+
"raw": "{{ip}}{{port}}/EmployeeList",
59+
"host": [
60+
"{{ip}}{{port}}"
61+
],
62+
"path": [
63+
"EmployeeList"
64+
]
65+
}
66+
},
67+
"response": []
68+
},
69+
{
70+
"name": "Update Employee",
71+
"request": {
72+
"method": "PUT",
73+
"header": [],
74+
"body": {
75+
"mode": "raw",
76+
"raw": "{\n \"id\": 2,\n \"name\":\"Gerard\",\n \"jobj\":\"Programador_Mid\"\n}",
77+
"options": {
78+
"raw": {
79+
"language": "json"
80+
}
81+
}
82+
},
83+
"url": {
84+
"raw": "{{ip}}{{port}}/EmployeeList/2",
85+
"host": [
86+
"{{ip}}{{port}}"
87+
],
88+
"path": [
89+
"EmployeeList",
90+
"2"
91+
]
92+
}
93+
},
94+
"response": []
95+
},
96+
{
97+
"name": "Delete",
98+
"request": {
99+
"method": "DELETE",
100+
"header": [],
101+
"body": {
102+
"mode": "raw",
103+
"raw": "",
104+
"options": {
105+
"raw": {
106+
"language": "json"
107+
}
108+
}
109+
},
110+
"url": {
111+
"raw": "{{ip}}{{port}}/EmployeeList/0",
112+
"host": [
113+
"{{ip}}{{port}}"
114+
],
115+
"path": [
116+
"EmployeeList",
117+
"0"
118+
]
119+
}
120+
},
121+
"response": []
122+
}
123+
]
124+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"id": "ea2123f8-e7a8-4cf6-86cd-02a50870eba3",
3+
"name": "local",
4+
"values": [
5+
{
6+
"key": "ip",
7+
"value": "localhost",
8+
"enabled": true
9+
},
10+
{
11+
"key": "port",
12+
"value": ":8080",
13+
"enabled": true
14+
}
15+
],
16+
"_postman_variable_scope": "environment",
17+
"_postman_exported_at": "2021-03-25T19:10:26.160Z",
18+
"_postman_exported_using": "Postman/8.0.7"
19+
}

0 commit comments

Comments
 (0)