2424 * environment or the service to your e2e test.
2525 *
2626 * <p> Each Playwright browser context has associated with it {@code APIRequestContext} instance which shares cookie storage
27- * with the browser context and can be accessed via {@link BrowserContext#request BrowserContext.request()} or {@link
28- * Page#request Page.request()}. It is also possible to create a new APIRequestContext instance manually by calling {@link
29- * APIRequest#newContext APIRequest.newContext()}.
27+ * with the browser context and can be accessed via {@link com.microsoft.playwright.BrowserContext#request
28+ * BrowserContext.request()} or {@link com.microsoft.playwright.Page#request Page.request()}. It is also possible to create
29+ * a new APIRequestContext instance manually by calling {@link com.microsoft.playwright.APIRequest#newContext
30+ * APIRequest.newContext()}.
3031 *
31- * <p> ** Cookie management**
32+ * <p> <strong> Cookie management</strong>
3233 *
33- * <p> {@code APIRequestContext} returned by {@link BrowserContext#request BrowserContext.request()} and {@link Page#request
34- * Page.request()} shares cookie storage with the corresponding {@code BrowserContext}. Each API request will have {@code
35- * Cookie} header populated with the values from the browser context. If the API response contains {@code Set-Cookie}
36- * header it will automatically update {@code BrowserContext} cookies and requests made from the page will pick them up.
37- * This means that if you log in using this API, your e2e test will be logged in and vice versa.
34+ * <p> {@code APIRequestContext} returned by {@link com.microsoft.playwright.BrowserContext#request BrowserContext.request()}
35+ * and {@link com.microsoft.playwright.Page#request Page.request()} shares cookie storage with the corresponding {@code
36+ * BrowserContext}. Each API request will have {@code Cookie} header populated with the values from the browser context. If
37+ * the API response contains {@code Set-Cookie} header it will automatically update {@code BrowserContext} cookies and
38+ * requests made from the page will pick them up. This means that if you log in using this API, your e2e test will be
39+ * logged in and vice versa.
3840 *
3941 * <p> If you want API requests to not interfere with the browser cookies you should create a new {@code APIRequestContext} by
40- * calling {@link APIRequest#newContext APIRequest.newContext()}. Such {@code APIRequestContext} object will have its own
41- * isolated cookie storage.
42+ * calling {@link com.microsoft.playwright. APIRequest#newContext APIRequest.newContext()}. Such {@code APIRequestContext}
43+ * object will have its own isolated cookie storage.
4244 */
4345public interface APIRequestContext {
4446 class StorageStateOptions {
@@ -79,9 +81,10 @@ default APIResponse delete(String url) {
7981 */
8082 APIResponse delete (String url , RequestOptions params );
8183 /**
82- * All responses returned by {@link APIRequestContext#get APIRequestContext.get()} and similar methods are stored in the
83- * memory, so that you can later call {@link APIResponse#body APIResponse.body()}.This method discards all its resources,
84- * calling any method on disposed {@code APIRequestContext} will throw an exception.
84+ * All responses returned by {@link com.microsoft.playwright.APIRequestContext#get APIRequestContext.get()} and similar
85+ * methods are stored in the memory, so that you can later call {@link com.microsoft.playwright.APIResponse#body
86+ * APIResponse.body()}.This method discards all its resources, calling any method on disposed {@code APIRequestContext}
87+ * will throw an exception.
8588 *
8689 * @since v1.16
8790 */
@@ -91,7 +94,7 @@ default APIResponse delete(String url) {
9194 * context cookies from the response. The method will automatically follow redirects. JSON objects can be passed directly
9295 * to the request.
9396 *
94- * <p> ** Usage**
97+ * <p> <strong> Usage</strong>
9598 * <pre>{@code
9699 * Map<String, Object> data = new HashMap();
97100 * data.put("title", "Book Title");
@@ -127,7 +130,7 @@ default APIResponse fetch(String urlOrRequest) {
127130 * context cookies from the response. The method will automatically follow redirects. JSON objects can be passed directly
128131 * to the request.
129132 *
130- * <p> ** Usage**
133+ * <p> <strong> Usage</strong>
131134 * <pre>{@code
132135 * Map<String, Object> data = new HashMap();
133136 * data.put("title", "Book Title");
@@ -162,7 +165,7 @@ default APIResponse fetch(String urlOrRequest) {
162165 * context cookies from the response. The method will automatically follow redirects. JSON objects can be passed directly
163166 * to the request.
164167 *
165- * <p> ** Usage**
168+ * <p> <strong> Usage</strong>
166169 * <pre>{@code
167170 * Map<String, Object> data = new HashMap();
168171 * data.put("title", "Book Title");
@@ -198,7 +201,7 @@ default APIResponse fetch(Request urlOrRequest) {
198201 * context cookies from the response. The method will automatically follow redirects. JSON objects can be passed directly
199202 * to the request.
200203 *
201- * <p> ** Usage**
204+ * <p> <strong> Usage</strong>
202205 * <pre>{@code
203206 * Map<String, Object> data = new HashMap();
204207 * data.put("title", "Book Title");
@@ -233,7 +236,7 @@ default APIResponse fetch(Request urlOrRequest) {
233236 * response. The method will populate request cookies from the context and update context cookies from the response. The
234237 * method will automatically follow redirects.
235238 *
236- * <p> ** Usage**
239+ * <p> <strong> Usage</strong>
237240 *
238241 * <p> Request parameters can be configured with {@code params} option, they will be serialized into the URL search parameters:
239242 * <pre>{@code
@@ -253,7 +256,7 @@ default APIResponse get(String url) {
253256 * response. The method will populate request cookies from the context and update context cookies from the response. The
254257 * method will automatically follow redirects.
255258 *
256- * <p> ** Usage**
259+ * <p> <strong> Usage</strong>
257260 *
258261 * <p> Request parameters can be configured with {@code params} option, they will be serialized into the URL search parameters:
259262 * <pre>{@code
@@ -314,7 +317,7 @@ default APIResponse patch(String url) {
314317 * response. The method will populate request cookies from the context and update context cookies from the response. The
315318 * method will automatically follow redirects.
316319 *
317- * <p> ** Usage**
320+ * <p> <strong> Usage</strong>
318321 *
319322 * <p> JSON objects can be passed directly to the request:
320323 * <pre>{@code
@@ -361,7 +364,7 @@ default APIResponse post(String url) {
361364 * response. The method will populate request cookies from the context and update context cookies from the response. The
362365 * method will automatically follow redirects.
363366 *
364- * <p> ** Usage**
367+ * <p> <strong> Usage</strong>
365368 *
366369 * <p> JSON objects can be passed directly to the request:
367370 * <pre>{@code
0 commit comments