Comments (10)
BTW, the media type for HAL is
application/hal+json
thx, fixed the typo
from hal-explorer.
@eiswind
The content-type in your response header is application/prs.hal-forms+json
.
In this case only GET request is displayed in HAL Explorer.
In case you planned to make a HAL-FORMS example, this seems intended behaviour.
For a HAL example content-type should be application/hal+json
.
Best
Patrick
from hal-explorer.
@pmoule, you are right. This is on purpose with HAl-FORMS media type, since HAL-FORMS provides affordances (_templates) for exactly those use cases. If you want to provide create or delete functionality, you would define the respective affordances.
BTW, the media type for HAL is application/hal+json
@eiswind, when you are using String HATEOAS you can choose from a list of supported media types. Spring Data REST only supported HAL in the past but they are also moving to HAL-FORMS.
from hal-explorer.
@pravinkalekar just set the content-type header to application/hal+json in the ui.
from hal-explorer.
@djkeh
Use the "Edit Headers" button in the top left corner next to the API URL to set the content-type header.
from hal-explorer.
Thanks for clearing this up! I didn't catch that change.
This must be a new behaviour of data-rest then. I just updated the spring boot version an got this new content-type w/o further changes. I'll have to investigate a little further.
from hal-explorer.
Thanks for pointing this out, I will check with latest Spring Data REST versions soon.
from hal-explorer.
This must be a new behaviour of data-rest then. I just updated the spring boot version an got this new content-type w/o further changes. I'll have to investigate a little further.
Did you find out how to suppress HAL-FORMS support in Spring Data REST or Spring HATEOAS for HAL Explorer to continue working for all HTTP Methods as it was working with previous versions of SpringBoot (2.4.9 earlier)?
from hal-explorer.
@pravinkalekar just set the content-type header to application/hal+json in the ui.
I still don't understand how to suppress hal-forms. I couldn't find the location to set the content-type header in the Spring Boot HAL explorer ui. Could you explain with more details to control it?
from hal-explorer.
@pravinkalekar Wow. I couldn't see that button. Thanks!
For those who want more accurate information, in order to get application/hal+json
content-type response, I can set my request header using Accept
key.
Tested on Spring Boot 2.5.4
from hal-explorer.
Related Issues (20)
- Parameters with Templated values not working HOT 9
- OAuth2/login support HOT 5
- Consider regular expression defined for HAL Forms template properties HOT 3
- Relative urls are not correctly expanded HOT 2
- Sometimes a JSON "isTrusted":true is shown
- HAL-FORMS form error messages as tooltip are probably not the best way of presenting errors HOT 1
- [Bug] TypeError: this.halFormsProperties is not iterable HOT 1
- Add option to execute OPTIONS request for a link HOT 6
- HAL-FORMS contentType property is ignored HOT 4
- Response is always expected as json HOT 4
- HAL-FORM with file input does not use multipart/form-data HOT 2
- Support for request content types other than json HOT 2
- Please make path adjustable HOT 1
- minimum supported spring boot version HOT 1
- Double requests when navigating APIs with HAL explorer HOT 3
- Relation named "curies [0] in "Links" section HOT 3
- Only "GET"-Buttons in "Links"-Section if there are HAL-Form templates HOT 9
- Add OIDC support HOT 1
- Add support for property regex HOT 1
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 hal-explorer.