The discovery_discover() method currently asks the client to pass in which rel link the client wants information about. This is not so good if there are multiple links, and the client wants all of them. In this case, the discovery_discover() method would require multiple calls, with each call making an http request to the target in order to get the information.
The rel value should be allowed to be blank, in which case all links are returned.
Patch attached
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | allow_multiple_links_return2.patch | 551 bytes | rurri |
| allow_multiple_links_return.patch | 944 bytes | rurri |
Comments
Comment #1
rurri commentedActually, its better if this method returns the array mapped by the rel link. Makes it nice and easy.
Comment #2
walkah commentedboth patches applied, thanks!