Overview
JSONPlaceholder is a free fake REST API. Use it to exercise CorefluxTYPE REST_API client connectors against posts, comments, users, and todos with no API key.
Basic Syntax
Events
Auth
No credentials. The template still includesAuthorization: Bearer {value.json.api_token}. Omit the token for demos. If you retarget BASE_ADDRESS to a private clone, load the secret with GET SECRET upstream. Never commit tokens.
Try it
- Add the connector on a lab broker.
- Publish
{"id": 1}tointegrations/jsonplaceholder/request/Getpost. - Subscribe to
integrations/jsonplaceholder/response/Getpost. - Create: publish a JSON body such as
{"title":"coreflux","body":"demo","userId":1}tointegrations/jsonplaceholder/request/Createpost(the connector forwards{payload}). - Users: publish
{"id": 1}tointegrations/jsonplaceholder/request/Getuser.
Checked against the public API:
GET /posts/1 and GET /users/1 returned HTTP 200; POST /posts returned HTTP 201. Broker MQTT round-trip was not run. lot_lint reported no findings on JsonplaceholderRestApi.
