Comments (7)
In the rewrite it is easy to implement support for HEAD and OPTIONS.
You have to implement a JsonApiHead and JsonApiOptions and hook them into DefaultJsonApiDispatcher
.
Patches are welcomed :)
from katharsis-framework.
It might be pretty easy for OPTIONS since it just requires looking if a repository method is implemented (of course, for annotation based repos). On the other hand, it's not clear for HEAD since it refers only to a path, not to a specific method. Or maybe HEAD should return 200 iff a resource is defined?
from katharsis-framework.
@meshuga : By looking at [1] HEAD should be the same as GET without returning a body. We might implement this by doing the same things as for GET without calling the actual repository method. We can start from this.
[1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
9.4 HEAD
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification.
The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource. If the new field values indicate that the cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale.
from katharsis-framework.
Great, let's do it like the GET
request then.
from katharsis-framework.
Hi guys, when do you plan to release the OPTIONS and HEAD support?
from katharsis-framework.
Ok, we can implement this functionality for the current version, that is 2.x.x, and release it about 09.18. I don't think I (or any contributor) will have time till the end of this week (this Sunday will be a next release).
But if you really want this functionality soon, you can always help us and contribute!
from katharsis-framework.
This has been pending a while. It's a good feature to have
from katharsis-framework.
Related Issues (20)
- when patch relationship with empty list, class BraveRepositoryFilter throw exception. HOT 1
- example for Katharsis 3.x for jersey
- Client/Server content type management incoherent and not compliant with JSON API spec HOT 3
- Homepage links to GitHub show 404 HOT 1
- Implementation of Resource.equals() completely ignores id and type
- spring boot example could not find class “io.katharsis.validation.ValidationModule” and “io.katharsis.brave.BraveModule” HOT 1
- Katharsis client: Ability to add custom exception mapper
- @JsonIgnore not working properly in hierarchies HOT 1
- serialization of float value adds many decimal places HOT 4
- Katharsis client expects content-type exactly equal to "application/vnd.api+json", but server appends "charset=utf-8"
- Unable to add ExceptionMappers with Katharsis-cdi HOT 1
- a problem we have when updating the version of Katharsis from 2.8.2 to 3.0.2
- No support for "https" in self links possible if Katharsis runs behind a reverse proxy
- io.katharsis.utils.parser.TypeParser.addParser
- Getting Started - dropwizard-simple-example can't find resource - broken links HOT 2
- If I wanted to *just* use this for serialization/deserialization, how would I do that? HOT 2
- Add save/delete implementations for many resources HOT 4
- Kathrasis is not extendable
- Katharsis + SpringBoot + Postgresql
- Make clear that this project is dead! HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from katharsis-framework.