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
!25
Update to make use of the ECA validation service for business logic
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update to make use of the ECA validation service for business logic
github/fork/autumnfound/malowe/master/24
into
master
Overview
7
Commits
3
Changes
12
Merged
Martin Lowe
requested to merge
github/fork/autumnfound/malowe/master/24
into
master
4 years ago
Overview
7
Commits
3
Changes
12
Expand
Signed-off-by: Martin Lowe
martin.lowe@eclipse-foundation.org
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b4532366
3 commits,
3 years ago
12 files
+
405
−
497
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/main/java/org/eclipse/foundation/gerrit/validation/APIService.java
+
5
−
16
Options
@@ -10,29 +10,18 @@
*/
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
;
import
retrofit2.http.Path
;
import
retrofit2.http.Query
;
import
retrofit2.http.Body
;
import
retrofit2.http.POST
;
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
);
@GET
(
"/bots"
)
CompletableFuture
<
Response
<
List
<
Bot
>>>
bots
(
@Query
(
"q"
)
String
query
);
@POST
(
"/git/eca"
)
CompletableFuture
<
Response
<
ValidationResponse
>>
validate
(
@Body
ValidationRequest
request
);
}
Loading