Skip to content

Commit ccdebfd

Browse files
Update README example
Updates example with accept header to match our docs.
1 parent fa429a7 commit ccdebfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openapi/templates/README.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ import java.util.*;
5959

6060
public class Example {
6161
public static void main(String[] args) {
62-
// Configure environment. https://int-api.mx.com for development, https://api.mx.com for production
6362
ApiClient defaultClient = Configuration.getDefaultApiClient();
63+
defaultClient.addDefaultHeader("Accept", "application/vnd.mx.api.v1+json");
64+
65+
// Configure environment. https://int-api.mx.com for development, https://api.mx.com for production
6466
defaultClient.setBasePath("https://int-api.mx.com");
6567
6668
// Configure with your Client ID/API Key from https://dashboard.mx.com

0 commit comments

Comments
 (0)