blob: a797002d14fe36923a49b95e8835edbba4a42384 (
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
|
/*********************************************************************
* 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.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
* @author Roberto E. Escobar
*/
@Path("index")
public interface IndexerEndpoint {
@PUT
@Path("branches/{branch-uuids}")
Response indexBranches(@PathParam("branch-uuids") String branchUuids, //
@DefaultValue("true") @QueryParam("missingItemsOnly") boolean missingItemsOnly);
@PUT
@Path("resources")
@Consumes(MediaType.APPLICATION_JSON)
Response indexResources(IndexResources options);
@DELETE
@Path("queue")
Response deleteIndexQueue();
@DELETE
@Path("queue/{query-id}")
Response deleteIndexQueueItem(@PathParam("query-id") int queryId);
}
|