use of com.authlete.jaxrs.server.obb.model.Meta in project java-oauth-server by authlete.
the class AccountsEndpoint method buildResponseBody.
private static ResponseAccountList buildResponseBody() {
// Build dummy accounts..
AccountData account = buildAccount();
AccountData[] data = new AccountData[] { account };
Links links = new Links().setSelf("/");
Meta meta = new Meta(1, 1, ObbUtils.formatNow());
return new ResponseAccountList(data, links, meta);
}
use of com.authlete.jaxrs.server.obb.model.Meta in project java-oauth-server by authlete.
the class FAPI2BaseAccountsEndpoint method buildResponseBody.
private static ResponseAccountList buildResponseBody() {
// Build dummy accounts..
AccountData account = buildAccount();
AccountData[] data = new AccountData[] { account };
Links links = new Links().setSelf("/");
Meta meta = new Meta(1, 1, ObbUtils.formatNow());
return new ResponseAccountList(data, links, meta);
}
use of com.authlete.jaxrs.server.obb.model.Meta in project java-oauth-server by authlete.
the class ResourcesEndpoint method buildResponseBody.
private static ResponseResourceList buildResponseBody() {
// Build dummy resources.
Resource resource = new Resource("resourceId", "type", "status");
Resource[] data = new Resource[] { resource };
Links links = new Links().setSelf("/");
Meta meta = new Meta(1, 1, ObbUtils.formatNow());
return new ResponseResourceList(data, links, meta);
}
Aggregations