summaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/bindings/IdentityDocumentApi.java
blob: fc5392411c1236d3a1d64db1a1deb7566a40945f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.identityprovider.api.bindings;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * @author bjorncs
 */
@Path("/identity-document")
public interface IdentityDocumentApi {

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/node/{host}")
    SignedIdentityDocumentEntity getNodeIdentityDocument(@PathParam("host") String host);


    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/tenant/{host}")
    SignedIdentityDocumentEntity getTenantIdentityDocument(@PathParam("host") String host);
}