Skip to content

dometec/jaxrs-odata-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JaxRS OData Examples

This repository contains some example to show how the JaxRS OData library is used.

The demo creates an in memory database with this schema and a hundred of row for each table: ER Database Schema

When you start a demo project, and you can use curl to query the data (please attention to escape che "$" charter):

curl "http://localhost:8080/api/authors?\$top=10" -H "Accept: application/json"
curl "http://localhost:8080/api/authors?\$top=10&\$skip=0&\$filter=contains%28firstname,%20%27do%2%29&\$count=true" -H "Accept: application/json"
curl "http://localhost:8080/api/authors?\$top=10&\$skip=0&\$filter=contains(posts/title,'dolorem')&\$count=true" -H "Accept: application/json"
curl "http://localhost:8080/api/posts?\$top=10&\$skip=0&\$filter=author/id%20eq%201&\$count=true" -H "Accept: application/json"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published