hal-json Questions

1

Imagine a REST endpoint (/employees) serving pages of employees in JSON HAL format. An employee lives in a country, which resides in a continent. For both countries and continents there are also s...
Philippeville asked 22/12, 2017 at 12:37

2

Solved

I've seen CURIEs described in the HAL specification. At first glance, it looks like a way to provide templating for URIs. However, I also see it prominently mentioned that it can be used to access ...
Churlish asked 26/1, 2015 at 17:2

3

Solved

I would like to open "application/hal+json" response inline in my Chrome browser. The problem is that the Chrome browser doesn't recognize the HAL response and downloads it. Before I always used th...
Thymol asked 9/9, 2013 at 14:0

1

Solved

Level 3 RESTful API's feature custom media-types like application/vnd.service.entity.v1+json, for example. In my case I am using HAL to provide links between related resources in my JSON. I'm not c...
Pet asked 15/12, 2014 at 23:6

2

Solved

I have started designing an API and have decided to have a go at making it conform to REST/HATEOAS. What should the entry point for the API be? It seems like a common one is GET / but from what I'...
Endoskeleton asked 29/10, 2013 at 21:25

1

Solved

When I use the default controller for my Entities, provided by Spring Data Rest everything works like it should. The output looks like this: { "_links" : { "search" : { "href" : "http://localho...
Hire asked 20/2, 2015 at 22:55

2

I'm trying to figure out how to build HAL links with templated: true. If I use BasicLinkBuilder.linkToCurrentMapping().slash("api/public/blogs/{blog}").withRel("blog"); The { and } chars are st...
Discernible asked 12/4, 2014 at 15:23

2

Solved

Ignoring 3xx responses for a moment, I wonder why the HTTP location header is only used in conjunction with POST requests/201 (Created) responses. From the RFC 2616 spec: For 201 (Created) resp...
Asylum asked 4/6, 2014 at 13:52

2

I'm relatively new to REST but I've been doing my homework on how RESTful should be. Now I'm trying to create a RESTful api implementing a JSON+HAL serializer for my models which have relationships...
Sumter asked 12/4, 2013 at 23:59
1

© 2022 - 2024 — McMap. All rights reserved.