You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Javascript SDK for [Contentful's](https://www.contentful.com) Content Management API.
12
-
13
-
# About
14
-
15
15
[Contentful](https://www.contentful.com) is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via a powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.
16
16
17
17
## Features
@@ -150,19 +150,57 @@ You can try and change the above example at [Tonic](https://tonicdev.com/npm/con
150
150
- Check your internet connection
151
151
- It is called `contentful-management` and not `contenful-management` ¯\_(ツ)_/¯
152
152
-**Can I use it with typescript?**
153
-
- Yes, type definition file coming soon
153
+
- Yes, type definition file coming soon
154
154
-**I am not sure what payload to send when creating and entity (Asset/Entity/ContentType etc...)**
155
155
- Check the Content Management API [docs](https://www.contentful.com/developers/docs/references/content-management-api/) or the examples in the reference [docs](https://contentful.github.io/contentful-management.js)
156
156
- Feel free to open an issue if you didn't find what you need in the above links
157
-
- 😱 **something is wrong what should I do**
158
-
- If it is a bug related to the code create a Github issue and make sure to remove any credential for your code before sharing it.
157
+
- 😱 **something is wrong what should I do**
158
+
- If it is a bug related to the code create a GitHub issue and make sure to remove any credential for your code before sharing it.
159
159
- If you need to share your credentials, for example you have an issue with your space, please create a support ticket.
160
-
- Please **do not** share your management token in a Github issue
161
-
160
+
- Please **do not** share your management token in a GitHub issue
161
+
162
162
## Documentation/References
163
163
164
164
To help you get the most out of this SDK, we've prepared reference documentation, tutorials and other examples that will help you learn and understand how to use this library.
165
165
166
+
### Configuration
167
+
168
+
The `createClient` method supports several options you may set to achieve the expected behavior:
Set the host used to build the upload related request uri's.
184
+
185
+
#### httpAgent (default: `undefined`)
186
+
Custom agent to perform HTTP requests. Find further information in the [axios request config documentation](https://github.com/mzabriskie/axios#request-config).
187
+
188
+
#### httpsAgent (default: `undefined`)
189
+
Custom agent to perform HTTPS requests. Find further information in the [axios request config documentation](https://github.com/mzabriskie/axios#request-config).
190
+
191
+
#### headers (default: `[]`)
192
+
Additional headers to attach to the requests. We add/overwrite the following headers:
* X-Contentful-User-Agent: `sdk contentful-management.js/1.2.3; platform node.js/1.2.3; os macOS/1.2.3`
196
+
(Automatically generated)
197
+
198
+
#### proxy (default: `undefined`)
199
+
Axios proxy configuration. See the [axios request config documentation](https://github.com/mzabriskie/axios#request-config) for further information about the supported values.
200
+
201
+
#### retryOnError (default: `true`)
202
+
By default, this SDK is retrying requests which resulted in a 500 server error and 429 rate limit response. Set this to `false` to disable this behavior.
203
+
166
204
### Reference documentation
167
205
168
206
The [Contentful's JS SDK reference](https://contentful.github.io/contentful-management.js) documents what objects and methods are exposed by this library, what arguments they expect and what kind of data is returned.
@@ -177,7 +215,7 @@ The `ContentfulSpaceAPI` namespace defines the methods at the Space level which
177
215
178
216
The `Entry`, `Asset` and `ContentType` namespaces show you the instance methods you can use on each of these entities, once you retrieve them from the server.
179
217
180
-
From version 1.0.0 onwards, you can access documentation for a specific version by visiting `https://contentful.github.io/contentful-management.js/contentful-management/<VERSION>`
218
+
>From version 1.0.0 onwards, you can access documentation for a specific version by visiting `https://contentful.github.io/contentful-management.js/contentful-management/<VERSION>`
181
219
182
220
### Contentful JavaScript resources
183
221
@@ -207,7 +245,7 @@ See the [migration guide](MIGRATION.md) for more information.
207
245
208
246
## Support
209
247
210
-
If you have a problem with this library, please file an [issue](https://github.com/contentful/contentful-management.js/issues/new) here on Github.
248
+
If you have a problem with this library, please file an [issue](https://github.com/contentful/contentful-management.js/issues/new) here on GitHub.
211
249
212
250
If you have other problems with Contentful not related to this library, you can contact [Customer Support](https://support.contentful.com).
0 commit comments