Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BackEnd-V2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joel Andres Molina Velez
BackEnd-V2
Commits
7c355b16
Commit
7c355b16
authored
May 27, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se corrigen errores en los servicios de configuracion
parent
83cbd5c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
UzyTavConfiguracionController.java
...MovilidadWS/controller/UzyTavConfiguracionController.java
+25
-6
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/controller/UzyTavConfiguracionController.java
View file @
7c355b16
...
...
@@ -10,19 +10,38 @@ import java.util.List;
import
static
ec
.
edu
.
espe
.
movilidad
.
MovilidadWS
.
Constant
.
GlobalConstants
.
V1_API_VERSION
;
@RestController
@CrossOrigin
(
origins
=
"*"
)
@RequestMapping
(
V1_API_VERSION
+
"/
example
"
)
@RequestMapping
(
V1_API_VERSION
+
"/
configuracion
"
)
public
class
UzyTavConfiguracionController
{
@Autowired
private
IServiceUzyTavConfiguracion
service
Example
;
private
IServiceUzyTavConfiguracion
service
UzyTavConfiguracion
;
@GetMapping
(
"/exampleFindId/{id}"
)
public
ResponseEntity
<
ModelUzyTavConfiguracion
>
find
(
@RequestParam
Long
id
)
{
return
new
ResponseEntity
<>(
service
Example
.
find
(
id
),
HttpStatus
.
OK
);
public
ResponseEntity
<
ModelUzyTavConfiguracion
>
ListarPorID
(
@RequestParam
Long
id
)
{
return
new
ResponseEntity
<>(
service
UzyTavConfiguracion
.
ListarPorID
(
id
),
HttpStatus
.
OK
);
}
@GetMapping
(
"/getAll"
)
public
ResponseEntity
<
List
<
ModelUzyTavConfiguracion
>>
findAll
()
{
return
new
ResponseEntity
<>(
service
Example
.
findAll
(),
HttpStatus
.
OK
);
public
ResponseEntity
<
List
<
ModelUzyTavConfiguracion
>>
ListarRegistros
()
{
return
new
ResponseEntity
<>(
service
UzyTavConfiguracion
.
ListarRegistros
(),
HttpStatus
.
OK
);
}
@PostMapping
(
"/guardar"
)
public
ResponseEntity
<
ModelUzyTavConfiguracion
>
guardar
(
@RequestBody
ModelUzyTavConfiguracion
modelUzyTavConfiguracion
)
{
return
new
ResponseEntity
<>(
serviceUzyTavConfiguracion
.
guardar
(
modelUzyTavConfiguracion
),
HttpStatus
.
OK
);
}
@PutMapping
(
"/editar/{id}"
)
public
ResponseEntity
<
ModelUzyTavConfiguracion
>
editar
(
@PathVariable
Long
id
,
@RequestBody
ModelUzyTavConfiguracion
modelUzyTavConfiguracion
)
{
return
new
ResponseEntity
<>(
serviceUzyTavConfiguracion
.
editar
(
id
,
modelUzyTavConfiguracion
),
HttpStatus
.
OK
);
}
@DeleteMapping
(
"/eliminar/{id}"
)
public
ResponseEntity
<
Void
>
eliminar
(
@PathVariable
Long
id
)
{
serviceUzyTavConfiguracion
.
eliminar
(
id
);
return
ResponseEntity
.
ok
().
build
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment