Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2017110273
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2021-04-13 18:46:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
37d79ef9cc0cf239b23d0f5a293c8c2b61f64258
37d79ef9
1 parent
e9b04868
Delete TestController.java
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
src/main/java/com/esboot/bertsearch/controller/TestController.java
src/main/java/com/esboot/bertsearch/controller/TestController.java
deleted
100644 → 0
View file @
e9b0486
package
com
.
esboot
.
bertsearch
.
controller
;
import
com.esboot.bertsearch.dto.Phone
;
import
com.esboot.bertsearch.repository.PhoneRepository
;
import
org.elasticsearch.search.aggregations.metrics.InternalHDRPercentiles
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/api"
)
public
class
TestController
{
private
final
PhoneRepository
phoneRepository
;
public
TestController
(
PhoneRepository
phoneRepository
)
{
this
.
phoneRepository
=
phoneRepository
;
}
@GetMapping
(
"/phones"
)
public
Iterable
<
Phone
>
findAllPhones
()
{
return
phoneRepository
.
findAll
();
}
@GetMapping
(
"/phones/{model}"
)
public
Iterable
<
Phone
>
findByModel
(
@PathVariable
String
model
)
{
return
phoneRepository
.
findByModel
(
model
);
}
}
Please
register
or
login
to post a comment