Spring-boot and Jersey based REST service showing the integration of rest-schemagen.
-
run service
mvn spring-boot:run
-
the Swagger UI can be found on http://localhost:9090/
-
REST API is available at http://localhost:9090/api/
GET: http://localhost:9090/api
- stations: GET /api/stations
- statistics: GET /api/weather/statistics
- query: GET /api/weather/49.0/11.0
POST: http://localhost:9090/api/stations
- self: GET /api/stations/d6b4cf17-144c-443d-8ca3-2ed2bc371ef3
- delete: DELETE /api/stations/d6b4cf17-144c-443d-8ca3-2ed2bc371ef3
GET: http://localhost:9090/api/stations
- create: POST /api/stations {u'type': u'object', u'properties': {u'latitude': {u'type': u'number'}, u'name': {u'type': u'string'}, u'longitude': {u'type': u'number'}}}
- self: GET /api/stations?offset=0&limit=100