@Target(value={FIELD,METHOD,TYPE}) @Retention(value=RUNTIME) @Inherited public @interface RestResource
Repository
with this to influence how it is exported and what
the value of the rel attribute will be in links.
As of Spring Data REST 2.0, prefer using RepositoryRestResource
to also be able to customize the relation
type and description for the item resources exposed by the repository.
Modifier and Type | Optional Element and Description |
---|---|
Description |
description
The description of the collection resource.
|
boolean |
exported
Flag indicating whether this resource is exported at all.
|
String |
path
The path segment under which this resource is to be exported.
|
String |
rel
The rel value to use when generating links to this resource.
|
public abstract boolean exported
public abstract String path
public abstract String rel
public abstract Description description
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.