Skip to content

AlisonSouza/FindAddressAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

FindAddressAPI

Introduction

This is an API using Spring Boot, integration with Camel and Maven for compiling and building the application. It provides a REST service that is created with Camel REST DSL, using the Geocoder component and documented with Swagger.

Build

You can build using:

$ mvn package

Run

You can run using:

$ mvn spring-boot:run

Test

After the Spring Boot application is started, you can open the following URL in your web browser to access the REST endpoint and request the address for "Amsterdam": http://localhost:8080/camel/find/?address=Amsterdam

The REST endpoint from the command line:

$ curl http://localhost:8080/camel/find/?address=Amsterdam

Should return:

{"results" : [{"formattedAddress" : "Amsterdam, Netherlands", "location" :{"lat" : 52.3702157, "lng" : 4.895167900000001 } } ] }

Documentation

The Swagger documentation is at: http://localhost:8080/camel/api-doc and can be retrieved with the following command:

$ curl http://localhost:8080/camel/api-doc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages