WARNING!!! THIS TESTS MAY ALTER YOUR DATA!!!
The FredCMS API-Test-Module
Use the API-Test-Module for learn more about the FredCMS API:
node tests/api
OPTIONS FOR AUTOMATIC TESTS:
- node tests/api login : provide userId and password to get your API access fredtoken
- node tests/api test other : api tests for fredconf, fred/metadata and fred/footer
- node tests/api test categories : api tests for for categories
- node tests/api test content : api tests for content
ONE QUERY TEST EXAMPLES:
- node tests/api GET /fred/content/0
- node tests/api POST /fred/content '{"category": "1", "type": "article", "title-en": "The new api"}'
- node tests/api PATCH /rest/fred/content/39 '{"title-de": "Die neue Opi"}'
- node tests/api PUT /addons/multisites '{"baseDir":"html2/", "persisten":"true"}'
- node tests/api DELETE /rest/fred/content/39
2020-05-12