Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefan-kolb/jaxrs-samples
Small example projects using JAX-RS technologies.
https://github.com/stefan-kolb/jaxrs-samples
examples gradle java jax-rs rest restful restful-webservices web-services
Last synced: 18 days ago
JSON representation
Small example projects using JAX-RS technologies.
- Host: GitHub
- URL: https://github.com/stefan-kolb/jaxrs-samples
- Owner: stefan-kolb
- License: mit
- Created: 2017-04-03T14:25:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-01T04:21:04.000Z (almost 4 years ago)
- Last Synced: 2024-11-19T07:36:14.676Z (3 months ago)
- Topics: examples, gradle, java, jax-rs, rest, restful, restful-webservices, web-services
- Language: Java
- Size: 144 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JAX-RS Samples
*Sample projects using JAX-RS technologies.*
Use `gradlew run` to start the JAX-RS server.
The server is available at `localhost:9999` per default.
This can be configured via `src/main/resources/config.properties`.The following resources are available:
`GET /cats`
Returns all available famous cats.
Implementation inside `ReadAll.java`.`GET /cats/1`
Returns a famous cat via its identifier.
Implementation inside `ReadSingle.java`.`GET /search?movie=Garfield`
Returns famous cats that are featured in a particular movie.
Implementation inside `Search.java`.`POST /cats`
Adds a new cat to the list of famous cats.
Implementation inside `Create.java`.`PUT /cats/1`
Updates the attributes of an existing famous cat.
Implementation inside `Update.java`.`DELETE /cats/1`
Deletes an existing famous cat via its id.
Implementation inside `Delete.java`.