Skip to content
Merged
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
28 changes: 0 additions & 28 deletions src/main/resources/static/custom_bootstrap.min.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,12 @@
/*! `Custom` Bootstrap 4 theme */
@import url(https://use.fontawesome.com/releases/v5.0.10/css/all.css);
/*!
* Bootstrap v4.5.0 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors
* Copyright 2011-2020 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
:root {
--blue: #007bff;
--indigo: #6610f2;
--purple: #6f42c1;
--pink: #e83e8c;
--red: #dc3545;
--orange: #fd7e14;
--yellow: #ffc107;
--green: #28a745;
--teal: #20c997;
--cyan: #17a2b8;
--white: #fff;
--gray: #6c757d;
--gray-dark: #343a40;
--primary: #408293;
--secondary: #868e96;
--success: #28a745;
--info: #17a2b8;
--warning: #ffc107;
--danger: #dc3545;
--light: #f8f9fa;
--dark: #343a40;
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;
--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";
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/static/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,16 @@

.icon{
font-size: 19px;
}

.table thead th{
background-color: white;
}

.table-striped tbody tr:nth-of-type(odd){
background-color: rgba(0, 0, 0, 0.10);
}

.table-striped tbody tr:nth-of-type(even){
background-color: white;
}
4 changes: 2 additions & 2 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
<div class="main-section">
<div class="col-md-12">
<div class="row Header">
<div class="col-sm-10">
<div class="col-sm-8">
<H4 class="headertitle">CRUD Empleats</H4>
<h6>Exercici realitzat utilitzant: Spring Api Rest, Javascript, jquery i Bootstrap.</h6>
</div>
<div class="col-sm-2 my-auto">
<div class="col-sm-4 my-auto text-right">
<button type="button" class="btn btn-primary add" data-toggle="modal" data-target="#modal" onclick="newEmployee();">
<i class="bi bi-person-plus-fill icon" style="margin-right: 5px;"></i>
Nou Empleat</button>
Expand Down
124 changes: 124 additions & 0 deletions src/postman_requests/M13-Http-Service.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"info": {
"_postman_id": "01c27239-82b2-4c05-8447-d7546da1aba9",
"name": "M13-Http-Service",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get All",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{ip}}{{port}}/EmployeeList",
"host": [
"{{ip}}{{port}}"
],
"path": [
"EmployeeList"
]
}
},
"response": []
},
{
"name": "Get ByID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{ip}}{{port}}/EmployeeList/2",
"host": [
"{{ip}}{{port}}"
],
"path": [
"EmployeeList",
"2"
]
}
},
"response": []
},
{
"name": "Create Employee",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\":\"Laura\",\n \"job\":\"Programador_Senior\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{ip}}{{port}}/EmployeeList",
"host": [
"{{ip}}{{port}}"
],
"path": [
"EmployeeList"
]
}
},
"response": []
},
{
"name": "Update Employee",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\": 2,\n \"name\":\"Gerard\",\n \"jobj\":\"Programador_Mid\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{ip}}{{port}}/EmployeeList/2",
"host": [
"{{ip}}{{port}}"
],
"path": [
"EmployeeList",
"2"
]
}
},
"response": []
},
{
"name": "Delete",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{ip}}{{port}}/EmployeeList/0",
"host": [
"{{ip}}{{port}}"
],
"path": [
"EmployeeList",
"0"
]
}
},
"response": []
}
]
}
19 changes: 19 additions & 0 deletions src/postman_requests/local.postman_environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "ea2123f8-e7a8-4cf6-86cd-02a50870eba3",
"name": "local",
"values": [
{
"key": "ip",
"value": "localhost",
"enabled": true
},
{
"key": "port",
"value": ":8080",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2021-03-25T19:10:26.160Z",
"_postman_exported_using": "Postman/8.0.7"
}