Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
/ rest-demo-jersey Public archive

Spring-boot and Jersey based REST service showing the integration of rest-schemagen.

License

Notifications You must be signed in to change notification settings

TNG/rest-demo-jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Dependency Status

rest-demo-jersey

Spring-boot and Jersey based REST service showing the integration of rest-schemagen.

service schematics

Start instructions

Example usage

Get base info

GET: http://localhost:9090/api

  • stations: GET /api/stations
  • statistics: GET /api/weather/statistics
  • query: GET /api/weather/49.0/11.0

Create station

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 stations

GET: http://localhost:9090/api/stations

  • create: POST /api/stations

    Payload:

    {'type': 'object', 'properties': {'latitude': {'type': 'number'}, 'name': {'type': 'string'}, 'longitude': {'type': 'number'}}}
    
  • self: GET /api/stations?offset=0&limit=100

License

rest-demo-jersey is published under the Apache License 2.0, see http://www.apache.org/licenses/LICENSE-2.0 for details.

About

Spring-boot and Jersey based REST service showing the integration of rest-schemagen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published