blob: 5053d3995e57d031e4be6e5a5c5c296f5695be55 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/*********************************************************************
* Copyright (c) 2015 Boeing
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Boeing - initial API and implementation
**********************************************************************/
package org.eclipse.osee.orcs.rest.model;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.eclipse.osee.framework.core.data.TransactionId;
import org.eclipse.osee.framework.core.data.UserTokens;
/**
* @author Roberto E. Escobar
*/
@Path("datastore")
public interface DatastoreEndpoint {
@GET
@Path("info")
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
DatastoreInfo getInfo();
@POST
@Path("initialize")
@Consumes(MediaType.TEXT_PLAIN)
@Produces(MediaType.APPLICATION_JSON)
TransactionId initialize();
@POST
@Path("synonyms")
@Consumes(MediaType.TEXT_PLAIN)
void synonyms();
@POST
@Path("migrate")
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
Response migrate();
@POST
@Path("initialize/createDemoBranches")
void createDemoBranches();
@POST
@Path("user")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
TransactionId createUsers(UserTokens users);
@POST
@Path("user/bootstrap")
@Produces(MediaType.APPLICATION_JSON)
void updateBootstrapUser();
}
|