Search in sources :

Example 1 with Meta

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);
}
Also used : Meta(com.authlete.jaxrs.server.obb.model.Meta) ResponseAccountList(com.authlete.jaxrs.server.obb.model.ResponseAccountList) AccountData(com.authlete.jaxrs.server.obb.model.AccountData) Links(com.authlete.jaxrs.server.obb.model.Links)

Example 2 with 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);
}
Also used : Meta(com.authlete.jaxrs.server.obb.model.Meta) ResponseAccountList(com.authlete.jaxrs.server.obb.model.ResponseAccountList) AccountData(com.authlete.jaxrs.server.obb.model.AccountData) Links(com.authlete.jaxrs.server.obb.model.Links)

Example 3 with 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);
}
Also used : Meta(com.authlete.jaxrs.server.obb.model.Meta) Resource(com.authlete.jaxrs.server.obb.model.Resource) Links(com.authlete.jaxrs.server.obb.model.Links) ResponseResourceList(com.authlete.jaxrs.server.obb.model.ResponseResourceList)

Aggregations

Links (com.authlete.jaxrs.server.obb.model.Links)3 Meta (com.authlete.jaxrs.server.obb.model.Meta)3 AccountData (com.authlete.jaxrs.server.obb.model.AccountData)2 ResponseAccountList (com.authlete.jaxrs.server.obb.model.ResponseAccountList)2 Resource (com.authlete.jaxrs.server.obb.model.Resource)1 ResponseResourceList (com.authlete.jaxrs.server.obb.model.ResponseResourceList)1