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.
queries
@UseDefaults
Property<java.util.List<Link>> queries()
query
Link query(java.lang.String relation)
commands
@UseDefaults
Property<java.util.List<Link>> commands()
command
Link command(java.lang.String relation)
resources
@UseDefaults
Property<java.util.List<Link>> resources()
resource
Link resource(java.lang.String relation)
index
@Optional
Property<ValueComposite> index()