Skip to content
Snippets Groups Projects

fix: Fix issue handling null values when augmenting profile, integrate Common ProjectService

5 files
+ 37
94
Compare changes
  • Side-by-side
  • Inline
Files
5
/*********************************************************************
* 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 javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.BeanParam;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.eclipsefoundation.core.service.APIMiddleware.BaseAPIParameters;
/**
* Projects-API binding.
*/
@Path("/api")
@ApplicationScoped
@RegisterRestClient(configKey = "projects-api")
public interface ProjectAPI {
/**
* Fetches all spec projects from the projects-api.
*
* @param params The BaseAPIParameters
* @param isSpecProject Flag for matching against spec projects
* @return A Response containing the spec project entities if they exist.
*/
@GET
@Path("/projects")
Response getProjects(@BeanParam BaseAPIParameters params, @QueryParam("spec_project") int isSpecProject);
}
Loading