{"id":19291030,"url":"https://github.com/thinger-io/server-endpoints","last_synced_at":"2025-07-27T02:38:38.266Z","repository":{"id":90427402,"uuid":"126371860","full_name":"thinger-io/Server-Endpoints","owner":"thinger-io","description":"Repository for server endpoints","archived":false,"fork":false,"pushed_at":"2020-02-06T11:29:01.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T20:09:34.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinger-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-22T17:27:50.000Z","updated_at":"2020-02-06T11:29:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce3d24f1-42e3-4327-8eb3-08f23b3d2462","html_url":"https://github.com/thinger-io/Server-Endpoints","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinger-io%2FServer-Endpoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinger-io%2FServer-Endpoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinger-io%2FServer-Endpoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinger-io%2FServer-Endpoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinger-io","download_url":"https://codeload.github.com/thinger-io/Server-Endpoints/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395750,"owners_count":19794573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:23:25.686Z","updated_at":"2025-02-23T23:52:55.772Z","avatar_url":"https://github.com/thinger-io.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server-Endpoints\n\nThis repository contains all the endpoint templates that can be loaded in a Thinger.io server instance to execute endpoint calls by devices. A template is basically a definition of a HTTP call where some parameters are modified in runtime by the server, i.e., for setting credentials in headers, modifying URLs, and so on.  \n\nTo load the endpoint templates in a Thinger.io server instance, just access a shell where the MongoDB server instance is running, and where the command `mongoimport` exists. Then, execute the script `import_script.sh` that will load all the JSON templates definitions in the database.\n\n**Note**: The import script just try to import the endpoints in the local `thinger` database. If you are using a custom database name, you may need to modify the script. Sample commands:\n\n\n```bash\ngit clone https://github.com/thinger-io/Server-Endpoints\ncd Server-Endpoints\nchmod +x import_script.sh\n./import_script.sh\n```\n\nA Thinger.io endpoint template is defined as the following example (for calling the IFTTT Maker Channel Trigger).\n\n\n```json\n{\n    \"_id\" : \"ifttt_maker_trigger\",\n    \"name\" : \"IFTTT Maker Channel Trigger\",\n    \"type\" : \"http_request\",\n    \"description\" : \"....\",\n    \"http_request\" : {\n        \"url\" : \"https://maker.ifttt.com/trigger/{{event}}/with/key/{{key}}\",\n        \"body_type\" : \"json\",\n        \"headers\" : [],\n        \"method\" : \"POST\"\n    },\n    \"parameters\" : [ \n        {\n            \"id\" : \"event\",\n            \"name\" : \"Maker event name\",\n            \"description\" : \"The name of the event you have entered in the IFTTT Maker Channel while configuring the trigger channel, like \\\"button_pressed\\\" or \\\"front_door_opened\\\".\"\n        }, \n        {\n            \"id\" : \"key\",\n            \"name\" : \"Maker channel secret key\",\n            \"description\" : \"Your IFTTT Maker Channel secret key that will allow call your defined Maker events.\"\n        }\n    ]\n}\n```\n\nThe console then processes this template and provides an interface for easily configuring the endpoint, like the required credentials:\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"resources/ifttt_maker_channel.png\"\u003e\n\u003c/p\u003e\n\nAfter importing the templates, it is possible to see them in the database, as in the following capture. Notice the `endpoints_templates` table:\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"resources/mongodb.png\"\u003e\n\u003c/p\u003e\n\nDo you have any endpoint template that can be useful for other users? Share it with us!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinger-io%2Fserver-endpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinger-io%2Fserver-endpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinger-io%2Fserver-endpoints/lists"}