Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

How does it discover resources? #1

Open
gr0uch opened this issue Dec 4, 2013 · 6 comments
Open

How does it discover resources? #1

gr0uch opened this issue Dec 4, 2013 · 6 comments

Comments

@gr0uch
Copy link

gr0uch commented Dec 4, 2013

It would be nice if resources are discoverable from the base URL, otherwise the user might have to manually enter routes:
json-api/json-api#126

@steveklabnik
Copy link
Contributor

Wouldn't they already enter a base URL? I am confused.

@gr0uch
Copy link
Author

gr0uch commented Dec 4, 2013

Sorry, I meant routes to resources. If the goal here is to be able to introspect an API with only the base URL as a starting point, then the index route should include links to resources, right?

@steveklabnik
Copy link
Contributor

Right. Why wouldn't those be included?


Sent from Mailbox for iPhone

On Wed, Dec 4, 2013 at 8:47 PM, Dali Zheng [email protected]
wrote:

Sorry, I meant routes to resources. If the goal here is to be able to introspect an API with only the base URL as a starting point, then the index route should include links to resources, right?

Reply to this email directly or view it on GitHub:
#1 (comment)

@gr0uch
Copy link
Author

gr0uch commented Dec 4, 2013

Because it's not yet part of the JSON API spec? :3

@steveklabnik
Copy link
Contributor

Sorry, we must have some sort of serious misunderstanding here. Let's wait until I get some more code written.


Sent from Mailbox for iPhone

On Wed, Dec 4, 2013 at 8:59 PM, Dali Zheng [email protected]
wrote:

Because it's not yet part of the JSON API spec? :3

Reply to this email directly or view it on GitHub:
#1 (comment)

@diosney
Copy link

diosney commented Jan 21, 2014

@steveklabnik What I think @daliwali ment is that the spec have to provide means to enable entire API discoverability starting at the root/index/home URL, ex: http://api.example.com/, if it wants to fulfill the hypermedia constrain and thus become an hypermedia API.

I think that by solving #126 this can be achieved since the specs already provides means to relate to other resources through the links attribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants