Skip to content

Commit 929c74d

Browse files
committed
Cleaned up Javadoc around GitLab endpoints.
1 parent 7d17dc2 commit 929c74d

File tree

8 files changed

+117
-122
lines changed

8 files changed

+117
-122
lines changed

src/main/java/org/gitlab4j/api/EventsApi.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public EventsApi(GitLabApi gitLabApi) {
2121
/**
2222
* Get a list of events for the authenticated user.
2323
*
24-
* GET /events
24+
* <pre><code>GitLab Endpoint: GET /events</code></pre>
2525
*
2626
* @param action include only events of a particular action type, optional
2727
* @param targetType include only events of a particular target type, optional
@@ -39,7 +39,7 @@ public List<Event> getAuthenticatedUserEvents(ActionType action, TargetType targ
3939
/**
4040
* Get a list of events for the authenticated user and in the specified page range.
4141
*
42-
* GET /events
42+
* <pre><code>GitLab Endpoint: GET /events</code></pre>
4343
*
4444
* @param action include only events of a particular action type, optional
4545
* @param targetType include only events of a particular target type, optional
@@ -70,7 +70,7 @@ public List<Event> getAuthenticatedUserEvents(ActionType action, TargetType targ
7070
/**
7171
* Get a list of events for the authenticated user and in the specified page range.
7272
*
73-
* GET /events
73+
* <pre><code>GitLab Endpoint: GET /events</code></pre>
7474
*
7575
* @param action include only events of a particular action type, optional
7676
* @param targetType include only events of a particular target type, optional
@@ -97,7 +97,7 @@ public Pager<Event> getAuthenticatedUserEvents(ActionType action, TargetType tar
9797
/**
9898
* Get a Stream of events for the authenticated user.
9999
*
100-
* GET /events
100+
* <pre><code>GitLab Endpoint: GET /events</code></pre>
101101
*
102102
* @param action include only events of a particular action type, optional
103103
* @param targetType include only events of a particular target type, optional
@@ -115,7 +115,7 @@ public Stream<Event> getAuthenticatedUserEventsStream(ActionType action, TargetT
115115
/**
116116
* Get a list of events for the specified user.
117117
*
118-
* GET /users/:userId/events
118+
* <pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
119119
*
120120
* @param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
121121
* @param action include only events of a particular action type, optional
@@ -134,7 +134,7 @@ public List<Event> getUserEvents(Object userIdOrUsername, ActionType action, Tar
134134
/**
135135
* Get a list of events for the specified user and in the specified page range.
136136
*
137-
* GET /users/:userId/events
137+
* <pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
138138
*
139139
* @param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
140140
* @param action include only events of a particular action type, optional
@@ -167,7 +167,7 @@ public List<Event> getUserEvents(Object userIdOrUsername, ActionType action, Tar
167167
/**
168168
* Get a list of events for the specified user and in the specified page range.
169169
*
170-
* GET /users/:userId/events
170+
* <pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
171171
*
172172
* @param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
173173
* @param action include only events of a particular action type, optional
@@ -196,7 +196,7 @@ public Pager<Event> getUserEvents(Object userIdOrUsername, ActionType action, Ta
196196
/**
197197
* Get a Stream of events for the specified user.
198198
*
199-
* GET /users/:userId/events
199+
* <pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
200200
*
201201
* @param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
202202
* @param action include only events of a particular action type, optional
@@ -215,7 +215,7 @@ public Stream<Event> getUserEventsStream(Object userIdOrUsername, ActionType act
215215
/**
216216
* Get a list of events for the specified project.
217217
*
218-
* GET /:projectId/events
218+
* <pre><code>GitLab Endpoint: GET /:projectId/events</code></pre>
219219
*
220220
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
221221
* @param action include only events of a particular action type, optional
@@ -234,7 +234,7 @@ public List<Event> getProjectEvents(Object projectIdOrPath, ActionType action, T
234234
/**
235235
* Get a list of events for the specified project and in the specified page range.
236236
*
237-
* GET /projects/:projectId/events
237+
* <pre><code>GitLab Endpoint: GET /projects/:projectId/events</code></pre>
238238
*
239239
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
240240
* @param action include only events of a particular action type, optional
@@ -267,7 +267,7 @@ public List<Event> getProjectEvents(Integer projectIdOrPath, ActionType action,
267267
/**
268268
* Get a list of events for the specified project and in the specified page range.
269269
*
270-
* GET /projects/:projectId/events
270+
* <pre><code>GitLab Endpoint: GET /projects/:projectId/events</code></pre>
271271
*
272272
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
273273
* @param action include only events of a particular action type, optional
@@ -296,7 +296,7 @@ public Pager<Event> getProjectEvents(Object projectIdOrPath, ActionType action,
296296
/**
297297
* Get a Stream of events for the specified project.
298298
*
299-
* GET /:projectId/events
299+
* <pre><code>GitLab Endpoint: GET /:projectId/events</code></pre>
300300
*
301301
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
302302
* @param action include only events of a particular action type, optional

src/main/java/org/gitlab4j/api/HealthCheckApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public HealthCheckApi(GitLabApi gitLabApi) {
1818
* Requires ip_whitelist, see the following link for more info:
1919
* See <a href="https://docs.gitlab.com/ee/administration/monitoring/ip_whitelist.html">https://docs.gitlab.com/ee/administration/monitoring/ip_whitelist.html</a>
2020
*
21-
* GET /-/liveness
21+
* <pre><code>GitLab Endpoint: GET /-/liveness</code></pre>
2222
*
2323
* @return HealthCheckInfo instance
2424
* @throws GitLabApiException if any exception occurs
@@ -30,7 +30,7 @@ public HealthCheckInfo getLiveness() throws GitLabApiException {
3030
/**
3131
* Get Health Checks from the liveness endpoint.
3232
*
33-
* GET /-/liveness
33+
* <pre><code>GitLab Endpoint: GET /-/liveness</code></pre>
3434
*
3535
* @param token Health Status token
3636
* @return HealthCheckInfo instance
@@ -54,7 +54,7 @@ public HealthCheckInfo getLiveness(String token) throws GitLabApiException {
5454
* Requires ip_whitelist, see the following link for more info:
5555
* See <a href="https://docs.gitlab.com/ee/administration/monitoring/ip_whitelist.html">https://docs.gitlab.com/ee/administration/monitoring/ip_whitelist.html</a>
5656
*
57-
* GET /-/readiness
57+
* <pre><code>GitLab Endpoint: GET /-/readiness</code></pre>
5858
*
5959
* @return HealthCheckInfo instance
6060
* @throws GitLabApiException if any exception occurs
@@ -66,7 +66,7 @@ public HealthCheckInfo getReadiness() throws GitLabApiException {
6666
/**
6767
* Get Health Checks from the readiness endpoint.
6868
*
69-
* GET /-/readiness
69+
* <pre><code>GitLab Endpoint: GET /-/readiness</code></pre>
7070
*
7171
* @param token Health Status token
7272
* @return HealthCheckInfo instance

src/main/java/org/gitlab4j/api/NotificationSettingsApi.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public NotificationSettingsApi(GitLabApi gitLabApi) {
1414
/**
1515
* Get the global notification settings.
1616
*
17-
* GET /notification_settings
17+
* <pre><code>GitLab Endpoint: GET /notification_settings</code></pre>
1818
*
1919
* @return a NotificationSettings instance containing the global notification settings
2020
* @throws GitLabApiException if any exception occurs
@@ -27,7 +27,7 @@ public NotificationSettings getGlobalNotificationSettings() throws GitLabApiExce
2727
/**
2828
* Update the global notification settings.
2929
*
30-
* PUT /notification_settings
30+
* <pre><code>GitLab Endpoint: PUT /notification_settings</code></pre>
3131
*
3232
* @param settings a NotificationSettings instance with the new settings
3333
* @return a NotificationSettings instance containing the updated global notification settings
@@ -62,7 +62,7 @@ public NotificationSettings updateGlobalNotificationSettings(NotificationSetting
6262
/**
6363
* Get the notification settings for a group.
6464
*
65-
* GET /groups/:id/notification_settings
65+
* <pre><code>GitLab Endpoint: GET /groups/:id/notification_settings</code></pre>
6666
*
6767
* @param groupId the group ID to get the notification settings for
6868
* @return a NotificationSettings instance containing the specified group's notification settings
@@ -76,7 +76,7 @@ public NotificationSettings getGroupNotificationSettings(int groupId) throws Git
7676
/**
7777
* Update the notification settings for a group
7878
*
79-
* PUT /groups/:id/notification_settings
79+
* <pre><code>GitLab Endpoint: PUT /groups/:id/notification_settings</code></pre>
8080
*
8181
* @param groupId the group ID to update the notification settings for
8282
* @param settings a NotificationSettings instance with the new settings
@@ -112,7 +112,7 @@ public NotificationSettings updateGroupNotificationSettings(int groupId, Notific
112112
/**
113113
* Get the notification settings for a project.
114114
*
115-
* GET /projects/:id/notification_settings
115+
* <pre><code>GitLab Endpoint: GET /projects/:id/notification_settings</code></pre>
116116
*
117117
* @param projectId the project ID to get the notification settings for
118118
* @return a NotificationSettings instance containing the specified project's notification settings
@@ -126,7 +126,7 @@ public NotificationSettings getProjectNotificationSettings(int projectId) throws
126126
/**
127127
* Update the notification settings for a project
128128
*
129-
* PUT /projects/:id/notification_settings
129+
* <pre><code>GitLab Endpoint: PUT /projects/:id/notification_settings</code></pre>
130130
*
131131
* @param projectId the project ID to update the notification settings for
132132
* @param settings a NotificationSettings instance with the new settings

0 commit comments

Comments
 (0)