blob: 541110f2662aec94b4d913aa4fce7f599442bb8b (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.application.v4;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.TenantCreateOptions;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.TenantInfo;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.TenantUpdateOptions;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.TenantWithApplications;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
/**
* @author Tony Vaagenes
*/
@Path("") //Ensures that the produces annotation is inherited
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface TenantResource {
String API_PATH = "tenant";
@GET
TenantWithApplications metaData();
@DELETE
TenantInfo deleteTenant();
@POST
TenantInfo createTenant(TenantCreateOptions tenantOptions);
@PUT
TenantInfo updateTenant(TenantUpdateOptions tenantOptions);
@Path(ApplicationResource.API_PATH)
ApplicationResource application();
@Path(CostResource.API_PATH)
CostResource cost();
}
|