You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
2So when building the UI we still need to know everything that the API offers, and then looking at those links we are able to know the state the information on the server is at? So for instance, the UI knows it's possible to deposit, withdraw, transfer or close (knows the possible rels), then it checks what came back in order to see the state?user1620696– user16206962015-02-09 22:12:50 +00:00Commented Feb 9, 2015 at 22:12
-
1Yes, it could. Again it depends on how dynamic that you want to take it. As others have mentioned, the ability to change links on the server (and not break clients) is another advantage. And this becomes very interesting once your API has an iPhone, Android, Windows Phone, Mobile Web and Web clients that all use it (not to mention if your API is published for others to build clients on).Davin Tryon– Davin Tryon2015-02-09 22:16:11 +00:00Commented Feb 9, 2015 at 22:16
-
@user1620696 You should know all of this anyway through both the client and server understating the content type if the resoure. Content type is a lot more than dumb xml or Json. You should have some "bank deposit" content type that the client understand how to work withCormac Mulhall– Cormac Mulhall2015-02-10 13:23:14 +00:00Commented Feb 10, 2015 at 13:23
-
1@Nik take a look at HAL for an example of how the links are provided in the response.Davin Tryon– Davin Tryon2019-01-25 11:11:25 +00:00Commented Jan 25, 2019 at 11:11
-
1yes, you still have backwards compatibility concerns. This can be solved by including a version header or version in the url. But, I would say you are understanding correctly.Davin Tryon– Davin Tryon2019-01-25 11:53:06 +00:00Commented Jan 25, 2019 at 11:53
|
Show 3 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you