@@ -57,10 +57,9 @@ void validate() {
57
57
/**
58
58
* Sets header for the request
59
59
*
60
- * @param key
61
- * header key for the request
62
- * @param value
63
- * header value for the request
60
+ * @param key header key for the request
61
+ * @param value header value for the request
62
+ * @return instance of {@link GlobalField}
64
63
*/
65
64
public GlobalField addHeader (@ NotNull String key , @ NotNull Object value ) {
66
65
this .headers .put (key , value );
@@ -70,10 +69,9 @@ public GlobalField addHeader(@NotNull String key, @NotNull Object value) {
70
69
/**
71
70
* Sets header for the request
72
71
*
73
- * @param key
74
- * query param key for the request
75
- * @param value
76
- * query param value for the request
72
+ * @param key query param key for the request
73
+ * @param value query param value for the request
74
+ * @return instance of {@link GlobalField}
77
75
*/
78
76
public GlobalField addParam (@ NotNull String key , @ NotNull Object value ) {
79
77
this .params .put (key , value );
@@ -83,8 +81,8 @@ public GlobalField addParam(@NotNull String key, @NotNull Object value) {
83
81
/**
84
82
* Set header for the request
85
83
*
86
- * @param key
87
- * Removes query param using key of request
84
+ * @param key Removes query param using key of request
85
+ * @return instance of {@link GlobalField}
88
86
*/
89
87
public GlobalField removeParam (@ NotNull String key ) {
90
88
this .params .remove (key );
@@ -93,6 +91,7 @@ public GlobalField removeParam(@NotNull String key) {
93
91
94
92
/**
95
93
* To clear all the query params
94
+ * @return instance of {@link GlobalField}
96
95
*/
97
96
protected GlobalField clearParams () {
98
97
this .params .clear ();
@@ -113,10 +112,10 @@ protected GlobalField clearParams() {
113
112
*
114
113
* @return Call
115
114
* @see <a href=
116
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#environment-collection">Get
117
- * all
118
- * environments
119
- * </a>
115
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#environment-collection">Get
116
+ * all
117
+ * environments
118
+ * </a>
120
119
* @see #addHeader(String, Object) to add headers
121
120
* @see #addParam(String, Object) to add query parameters
122
121
* @since 0.1.0
@@ -142,10 +141,10 @@ public Call<ResponseBody> find() {
142
141
*
143
142
* @return Call
144
143
* @see <a href=
145
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#get-a-single-global-field">Get
146
- * a
147
- * single global field
148
- * </a>
144
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#get-a-single-global-field">Get
145
+ * a
146
+ * single global field
147
+ * </a>
149
148
* @see #addHeader(String, Object) to add headers
150
149
* @see #addParam(String, Object) to add query parameters
151
150
* @since 0.1.0
@@ -171,15 +170,14 @@ public Call<ResponseBody> fetch() {
171
170
* valid Content Management API request.
172
171
* Read more about authentication.
173
172
*
174
- * @param requestBody
175
- * the request body
173
+ * @param requestBody the request body
176
174
* @return Call
177
175
* @see <a href=
178
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#create-a-global-field">Create
179
- * a global
180
- * field
176
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#create-a-global-field">Create
177
+ * a global
178
+ * field
181
179
*
182
- * </a>
180
+ * </a>
183
181
* @see #addHeader(String, Object) to add headers
184
182
* @since 0.1.0
185
183
*/
@@ -201,15 +199,14 @@ public Call<ResponseBody> create(@NotNull JSONObject requestBody) {
201
199
* valid Content Management API request.
202
200
* Read more about authentication.
203
201
*
204
- * @param requestBody
205
- * the request body
202
+ * @param requestBody the request body
206
203
* @return Call
207
204
* @see <a href=
208
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#update-a-global-field">Update
209
- * a global
210
- * field
205
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#update-a-global-field">Update
206
+ * a global
207
+ * field
211
208
*
212
- * </a>
209
+ * </a>
213
210
* @see #addHeader(String, Object) to add headers
214
211
* @since 0.1.0
215
212
*/
@@ -231,10 +228,10 @@ public Call<ResponseBody> update(@NotNull JSONObject requestBody) {
231
228
*
232
229
* @return Call
233
230
* @see <a href=
234
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#delete-global-field">Delete
235
- * global
236
- * field
237
- * </a>
231
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#delete-global-field">Delete
232
+ * global
233
+ * field
234
+ * </a>
238
235
* @see #addHeader(String, Object) to add headers
239
236
* @since 0.1.0
240
237
*/
@@ -255,15 +252,14 @@ public Call<ResponseBody> delete() {
255
252
* (any one is mandatory), along with the
256
253
* stack API key, to make a valid Content Management API request.
257
254
*
258
- * @param body
259
- * The request body
255
+ * @param body The request body
260
256
* @return Call
261
257
* @see <a href=
262
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#import-a-global-field">Import
263
- * a global
264
- * field
258
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#import-a-global-field">Import
259
+ * a global
260
+ * field
265
261
*
266
- * </a>
262
+ * </a>
267
263
* @see #addHeader(String, Object) to add headers
268
264
* @since 0.1.0
269
265
*/
@@ -279,11 +275,11 @@ public Call<ResponseBody> imports(@NotNull JSONObject body) {
279
275
*
280
276
* @return Call
281
277
* @see <a href=
282
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#export-a-global-field">Export
283
- * a global
284
- * field
278
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#export-a-global-field">Export
279
+ * a global
280
+ * field
285
281
*
286
- * </a>
282
+ * </a>
287
283
* @see #addHeader(String, Object) to add headers
288
284
* @since 0.1.0
289
285
*/
0 commit comments