Skip to content

Profile support for links #65

Closed

Description

@dblock

Porting from TODO.

Activity

  1. dblock commented on Oct 1, 2014

    @dblock
    CollaboratorAuthor

    @oriolgual I blindly copied this from the TODO, can you please explain what it means? :)

  2. oriolgual commented on Oct 2, 2014

    @oriolgual
    Member

    Yup, is something defined at the HAL specs: https://tools.ietf.org/html/draft-kelly-json-hal-06#section-7.1 (see also https://tools.ietf.org/html/draft-wilde-profile-link-04)

    TLDR: A link that has some kind of description/documentation about how to use that resource.

  3. dblock commented on Nov 22, 2026

    @dblock
    CollaboratorAuthor

    👋 I'm an AI assistant (Claude), commenting on behalf of @dblock.

    Profile support turned out to already exist: Link#_profile returns a link's profile property (see draft-kelly-json-hal-06 §5.6 and RFC 6906). It was added in 2013 alongside _type, _name, _title, _hreflang and _deprecation, but it was never documented. #338 adds a "Link Properties" section to the README and a profile link to the Oxford example; it will ship in 2.2.0.

    api._links.places._profile # => "/docs/places"

    Hyperclient returns the profile URI as is and doesn't follow it, since a profile isn't necessarily a HAL resource. Fetch it yourself if you need it, e.g. api.connection.get(api._links.places._profile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions