Questions tagged [crnk]

Crnk is an implementation of the JSON API specification and recommendations in Java to facilitate building RESTful applications.

Links

26 questions
0
votes
1 answer

Filtering bidirectional relationship in CRNK

I'm playing with crnk trying to deduce the bits I cannot find in the docs. I will explain my problem on standard crnk example: https://github.com/crnk-project/crnk-framework/tree/master/crnk-integration-examples/spring-boot-example. There is…
0
votes
3 answers

Use CRNK without repository

We've standardized on using JSON:API for our REST endpoints, however; not all of our data revolves around repositories and it seems that CRNK requires repositories in order to work. Is that correct? Example I wrote a very simple Spring Boot 2.1.9…
Jim M.
  • 909
  • 1
  • 12
  • 29
0
votes
0 answers

How to fix: NullPointerException in JpaCriteriaQueryBackend.getOrderList

I setup on a Java EE 7.0 server (Oracle WebLogic) using 3.0.20190714142556 with a simple resource (customer) loaded as JPA Entity with JpaEntityRepositoryBase from a database. The application can be deployed without problems. crnk.io will be used…
Markus
  • 11
  • 4
0
votes
1 answer

crnk-client doesn't load related resources

I'm using crnk-client 2.6 to load JSON API resources. Here is a simplified situation. I have two resources and want to fetch Leads data with Contacts info, however contact field with @JsonApiRelation annotation contains null. Here is this debug…
Alex Karasev
  • 1,108
  • 2
  • 13
  • 24
0
votes
1 answer

crnk subrelation filtering allowed?

We're using crnk for json-api both server-side as client-side implementation. Does the server implementation for jpa bindings support subrelation filters? We want to filter on all series which have events after a specific starttime. We seperated the…
Kristof
  • 3
  • 1
0
votes
0 answers

Manual mapping from Json to one of DTO child classes in crnk

We use crnk framework for json-api implementation. There is a response body for GET/request body for PATCH: { "data": { "id": "1", "type": "v1/indicator-data", "attributes": { "indicatorValues": [ …
funny-shmunny
  • 87
  • 1
  • 13
0
votes
1 answer

Relationship links in JSON to parent don't link back up one level, possibly due to two keys

I have a "Movie" class and a "Actor" class. I have mapped these in the entities as a OneToMany and vice versa (one Movie can have many Actors). Crnk is creating the endpoints and they are working nicely, apart from the link under "relationships" on…
0
votes
1 answer

crnk json implementation Java API Doc

We are using crnk JSON API implementation on the server side (Java). I see the crnk documentation here http://www.crnk.io/documentation/. But, I am not able to find the corresponding Java API Reference documentation. Not sure if there is on…
0
votes
1 answer

Crnk map different resources for one relation

The question is related to Crnk framework. For example, in JsonApiResource I have a field. And depending on some other values I want this field to have different data. Like the first option: "data": { "id": "1", "attributes": { …
funny-shmunny
  • 87
  • 1
  • 13
0
votes
1 answer

Crnk JsonApiRelation, OneToMany and filtering implementation

I use crnk (JSON-API) in java project and I have 3 questions regarding its usage with spring boot and jpa - haven't found exact implementation details in documentation. For example, I have 2 entities and respective…
funny-shmunny
  • 87
  • 1
  • 13
-1
votes
1 answer

ForbiddenException: not allowed to access GET label

My @Component @EnableWebSecurity public class SecurityConfiguration extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity httpSecurity) throws Exception { httpSecurity …
emoleumassi
  • 4,881
  • 13
  • 67
  • 93
1
2