#76 - Added HAL browser to Spring Data REST Starbucks example.
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -33,7 +33,7 @@
|
||||
<apt.version>1.1.3</apt.version>
|
||||
<java.version>1.8</java.version>
|
||||
<querydsl.version>3.6.2</querydsl.version>
|
||||
<spring-data-releasetrain.version>Fowler-RELEASE</spring-data-releasetrain.version>
|
||||
<spring-data-releasetrain.version>Gosling-BUILD-SNAPSHOT</spring-data-releasetrain.version>
|
||||
|
||||
</properties>
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@ This sample app exposes 10843 Starbucks coffee shops via a RESTful API that allo
|
||||
3. Access the root resource (`curl http://localhost:8080`) and traverse hyperlinks.
|
||||
4. Or access the location search directly (e.g. `localhost:8080/stores/search/findByAddressLocationNear?location=40.740337,-73.995146&distance=0.5miles`)
|
||||
|
||||
## API exploration
|
||||
|
||||
The module uses the HAL Browser module of Spring Data REST which serves a UI to explore the resources exposed. Point your browser to `http://localhost:8080` to see it.
|
||||
|
||||
## Technologies used
|
||||
|
||||
- Spring Data REST & Spring Data MongoDB
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-rest-hal-browser</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.batch</groupId>
|
||||
<artifactId>spring-batch-core</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user