Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smizell
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
smizell
13y ago
I would say media types don't give you a full definition [1] because they really aren't meant to do so. They are meant to be used to express resources in a certain way that clients and servers can understand them. Additionally, yo
62.
▲
by
smizell
13y ago
Hasn't this idea already been explored with registering media types? Isn't this what REST and all of the HTTP specs were meant to address? You use an existing hypermedia type or register a new one, then any client that can read th
63.
▲
by
smizell
13y ago
Neither is more or less RESTful than the other. The media type and link relations express to the client what resource is being returned, not the URL itself.
64.
▲
by
smizell
13y ago
Just wanted to add some thoughts on how one could try to make this RESTful. First, if it were me, I'd pick a media type that can express hyperlinks in JSON (since JSON knows nothing about hyperlinks), maybe something like HAL [1]. Next
65.
▲
by
smizell
13y ago
Just wanted to say a big thanks for a very time-intensive reply, one of which will probably only be seen by me. I wish we were sitting somewhere and could chat it over, but alas we're in the comment wastelands. I'd be more than wi
66.
▲
by
smizell
13y ago
We are all humans in some intermediate category, and to say a human of some category (like a fetus) has no claim to its right to life is pulled out thin air. This is all word play. If you look up the etymology of the word, fetus at one time
67.
▲
by
smizell
13y ago
I didn't want to start or get into a debate, but I'll bite for a second :) I have a really hard time understanding how some can claim that a body in one location is human, but that body in another location is non-human. How should
68.
▲
by
smizell
13y ago
Though I'm not arguing for what the original commenter was arguing for, I don't think it would be a conflict in their line of thinking. I think the OP would argue for the right to suicide, but not for the right to commit suicide b
69.
▲
by
smizell
13y ago
A person holding to this position will have no problem with a woman wanting to cut off a finger or remove a toe, but as soon as you consider the unborn to be a person that has a body, every right given to someone with a body would be extend
70.
▲
by
smizell
13y ago
Isn't HATEOAS more about just URL changes, though? It is about letting the responses provide available responses to the client. This requires a commitment to creating media types or using existing ones, along with using link relations.
71.
▲
by
smizell
13y ago
I think we spend too much time trying to craft beautiful, descriptive URLs, where we should be spending our time crafting beautiful, descriptive responses. We try to make the URL describe to the developer what is being returned, when in rea
72.
▲
by
smizell
13y ago
I believe it's actually the other way around, where HATEOAS is the least "enterprisy" of the options. When I think of enterprise or over-complication, I think of a system where logic is so deeply embedded in the server and cl
73.
▲
by
smizell
13y ago
I think the different definitions for REST have really muddied the water. To the REST purist, RAML is falling well short of being truly RESTful for reasons which you've mentioned. In other words, RAML isn't REST at all. To most ot
74.
▲
by
smizell
13y ago
Just above the diagram the author speaks about this: "In addition to these operations, the subscription server may verify the intent of the subscriber by making an HTTP call to the provided callback with the same parameters requested b