Skip to content
Snippets Groups Projects

feat: Add org MCCA document validation

All threads resolved!
Files
10
/*********************************************************************
* Copyright (c) 2023 Eclipse Foundation.
*
* 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/
*
* Author: Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipsefoundation.profile.api;
import java.util.List;
import javax.annotation.security.RolesAllowed;
import javax.enterprise.context.ApplicationScoped;
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.microprofile.rest.client.inject.RegisterRestClient;
import org.eclipsefoundation.foundationdb.client.model.OrganizationDocumentData;
import io.quarkus.oidc.client.filter.OidcClientFilter;
/**
* FoundationDb-API binding for '/organizations'
*/
@Path("/organizations")
@OidcClientFilter
@Produces(MediaType.APPLICATION_JSON)
@ApplicationScoped
@RegisterRestClient(configKey = "fdndb-api")
public interface OrganizationAPI {
@GET
@Path("{orgId}/documents")
@RolesAllowed("fdb_read_organization_documents")
List<OrganizationDocumentData> getOrganizationDocuments(@PathParam("orgId") String orgId);
}
Loading