Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gerrit-eca-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
IT
Webdev
gerrit-eca-plugin
Merge requests
!16
Migrate to permission backend
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Migrate to permission backend
github/fork/davido/migrate-to-permission-backend
into
master
Overview
8
Commits
3
Changes
12
Merged
Christopher Guindon
requested to merge
github/fork/davido/migrate-to-permission-backend
into
master
5 years ago
Overview
8
Commits
3
Changes
12
Expand
Created by: davido
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7a0823cc
3 commits,
3 years ago
12 files
+
377
−
358
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
eclipse-cla/src/main/java/org/eclipse/foundation/gerrit/validation/APIService.java
+
21
−
24
Options
/*********************************************************************
* Copyright (c) 2019 Eclipse Foundation and others.
*
* 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
**********************************************************************/
/**
* ******************************************************************* Copyright (c) 2019 Eclipse
* Foundation and others.
*
* <p>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/
*
* <p>SPDX-License-Identifier: EPL-2.0
* ********************************************************************
*/
package org.eclipse.foundation.gerrit.validation;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import okhttp3.HttpUrl;
import retrofit2.Response;
import retrofit2.http.GET;
@@ -20,18 +20,15 @@ import retrofit2.http.Query;
interface APIService {
static
final
HttpUrl
BASE_URL
=
HttpUrl
.
get
(
"https://api.eclipse.org/"
);
@GET
(
"/account/profile"
)
CompletableFuture
<
Response
<
List
<
UserAccount
>>>
search
(
@Query
(
"uid"
)
Integer
uid
,
@Query
(
"name"
)
String
name
,
@Query
(
"mail"
)
String
mail
);
@GET
(
"/account/profile/{name}"
)
CompletableFuture
<
Response
<
UserAccount
>>
search
(
@Path
(
"name"
)
String
name
);
@GET
(
"/account/profile/{name}/eca"
)
CompletableFuture
<
Response
<
ECA
>>
eca
(
@Path
(
"name"
)
String
name
);
static final HttpUrl BASE_URL = HttpUrl.get("https://api.eclipse.org/");
@GET("/account/profile")
CompletableFuture<Response<List<UserAccount>>> search(
@Query("uid") Integer uid, @Query("name") String name, @Query("mail") String mail);
@GET("/account/profile/{name}")
CompletableFuture<Response<UserAccount>> search(@Path("name") String name);
@GET("/account/profile/{name}/eca")
CompletableFuture<Response<ECA>> eca(@Path("name") String name);
}
Loading