blob: cdc18c4cbdbf675bdc271b5f105726354faf5bad [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2021 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.mim;
import java.util.Collection;
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;
import org.eclipse.osee.mim.types.InterfaceStructureToken;
/**
* @author Luciano T. Vaglienti
*/
@Path("structures")
public interface InterfaceStructureSearchEndpoint {
@GET()
@Path("filter")
@Produces(MediaType.APPLICATION_JSON)
Collection<InterfaceStructureToken> getAllStructures();
@GET()
@Path("filter/{filter}")
@Produces(MediaType.APPLICATION_JSON)
Collection<InterfaceStructureToken> getFilteredStructures(@PathParam("filter") String filter);
}