-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Fake Contentful | ||
======================== | ||
|
||
Fakes the Contentful Management API. | ||
For full reference of API see https://www.contentful.com/developers/docs/references/content-management-api/ | ||
|
||
**API Example:** | ||
|
||
POST /spaces/yadj1kx9rmg0/entries | ||
|
||
```json | ||
{ | ||
"fields": { | ||
"title": { | ||
"en-US": "Hello, World!" | ||
}, | ||
"body": { | ||
"en-US": "Bacon is healthy!" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Docker compose override | ||
----------------------- | ||
|
||
To enable overrides, copy the file docker-compose.override-example.yml into docker-compose.override.yml, it is gitignored. | ||
|
||
|
||
Start with | ||
---------- | ||
|
||
```shell | ||
docker-compose up | ||
``` | ||
|
||
|
||
Run tests | ||
--------- | ||
|
||
```shell | ||
npm test | ||
``` |