org.qi4j.library.rest.common

## Interface Resource

- All Superinterfaces:
    Composite, ValueComposite
  All Known Implementing Classes:
    Resource.Mixin

      @Mixins(value=Resource.Mixin.class)
      public interface Resource
      extends ValueComposite

  Value representing a whole resource in a URL path. Allows listing of available queries, commands, sub-resources and an index.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `Resource.Mixin`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Link` | `command(String relation)`
    `Property<List<Link>>` | `commands()`
    `Property<ValueComposite>` | `index()`
    `Property<List<Link>>` | `queries()`
    `Link` | `query(String relation)`
    `Link` | `resource(String relation)`
    `Property<List<Link>>` | `resources()`

- - ### Method Detail

    - #### queries

          @UseDefaults
          Property<List<Link>> queries()

    - #### query

          Link query(String relation)

    - #### commands

          @UseDefaults
          Property<List<Link>> commands()

    - #### command

          Link command(String relation)

    - #### resources

          @UseDefaults
          Property<List<Link>> resources()

    - #### resource

          Link resource(String relation)

    - #### index

          @Optional
          Property<ValueComposite> index()