Questions tagged [katharsis]

HATEOAS (Hypermedia as the Engine of Application State) for Java based on JSON API standard

About

The Katharsis library adds an additional layer on top of RESTful endpoint to provide easy HATEOAS support for Java by implementing JSON API standard.

Links

37 questions
1
vote
0 answers

Katharsis security + API versioning

I am currently evaluating possibilities, how to write/generate level2+ rest API. I came across karharis and i pretty like the concept and the whole idea how its done seems sound to me. But I have not found answers to these questions: How to handle…
malejpavouk
  • 4,297
  • 6
  • 41
  • 67
1
vote
0 answers

Accessing modified attributes in katharsis when saving resource

When I implement a method annotated with @JsonApiSave in my katharsis repository I get a fully populated resource as a parameter, even though the PATCH request is only sending a single attribute. Is there a way I can find out which attributes have…
Rob Martin
  • 31
  • 3
1
vote
1 answer

Modifying katharsis json response

I am using katharsis with spring boot. I want to change the 'id' key in json response with my table PK column name, following is the katharsis response { "type": "table-name", "id": "A", "attributes": { "description": "AAA" …
hnf1991
  • 97
  • 9
0
votes
1 answer

Is it possible to add another filter in addition to Katharsis filter

I'm using Katharsis in my spring boot application in order to support json-api. I setup Katharsis using Resources as described here: https://www.baeldung.com/json-api-java-spring-web-app Now, I want to add another custom filter to my spring boot…
Adi Ohana
  • 927
  • 2
  • 13
  • 18
0
votes
0 answers

OPTIONS HTTP method instead of GET

I am new to ember js using version 3. From a route I am using this line this.get('store').findAll('users'); Instead of setting HTTP method GET, it is setting HTTP method OPTIONS. Because of server is getting OPTIONS as HTTP method, server side…
user1346346
  • 195
  • 2
  • 16
0
votes
0 answers

jsonapi - include external resource

I'm trying to do an inclusion between Resources that are handled by different services. Both services use Katharsis. Let's assume those resources are Book and Publisher. I want to be able to include a publisher when GETing a book resource. I know I…
user2793390
  • 741
  • 7
  • 29
0
votes
1 answer

How to setup repository decorators in katharsis

I'm trying to use repository decorators in katharsis (version 2.8.2) but the thing isn't working so far. I've extended ResourceRepositoryDecoratorBase, implemented RepositoryDecoratorFactory and provided them thru a SimpleModule to…
jglatre
  • 911
  • 1
  • 12
  • 15
0
votes
2 answers

Katharsis and JPA Annotations

Using Katharsis in our SpringBoot Application with JPA requires to annotate JPA's @OneToMany relationships with @JsonApiToMany and similarly @ManyToOne with @JsonApiToOne. I am wondering if there is any way to avoid this duplicate annotations? Is…
ninux
  • 31
  • 2
0
votes
1 answer

How to handle the following case with katharsis?

I have a model and repository. Model has getter and setter values which has to be added in the response. My model is like follows import com.fasterxml.jackson.annotation.JsonIgnore; import io.katharsis.resource.annotations.JsonApiId; import…
Tom Taylor
  • 3,344
  • 2
  • 38
  • 63
0
votes
1 answer

RestAssured Spring Boot Test returning 404s

I am building an API using Spring Boot and Katharsis. When writing integration tests using RestAssured my tests are passing in STS but getting 404s in Maven. I'm not sure what the difference might be or why it isn't working. Running the API things…
Joel Holmes
  • 943
  • 2
  • 12
  • 23
0
votes
2 answers

katharsis configured with spring xml

It looks, from the source code, that Katharsis-spring module will only work with spring boot. My question then, is it possible to configure a spring project in xml and load Katharsis without spring boot? If so, how would you need to configure…
JoshR
  • 1
  • 1
0
votes
1 answer

How get ResourceUrl from Katharsis

When I try to rewrite Katharsis self link, I need add resource url as prefix. e.g: "self": "http://localhost/table-name/A" Where I can get http://localhost/table-name. I found ResourceRegistry provider this method. but I am not able to get…
Bensson
  • 4,509
  • 4
  • 19
  • 24
0
votes
1 answer

Katharsis suppress relationship links?

Is there any way I can suppress relationship links using Katharsis? That is, by default it returns: { "data": { "type": "permissions", "attributes": { "permission": "VIEW" }, "relationships": { "grantee": { "links": { …
chuckfactory
  • 123
  • 9
0
votes
1 answer

Katharsis relationship with different types?

I would like to deal with JSON that can be either: { "data": { "id": "1", "type": "permissions", "attributes": { "permission": "VIEW" } "relationships": { "user": { "data": { "id": "U1", "type": "users" } } "resource":…
chuckfactory
  • 123
  • 9
0
votes
1 answer

Customize katharsis json response

I am using katharsis, I want customize response, following is the katharsis response. { "type": "table-name", "id": "A", "attributes": { "description": "AAA" }, "relationships": { }, "links": { "self": "http://localhost/table-name/A" …
Bensson
  • 4,509
  • 4
  • 19
  • 24