{"id":20745406,"url":"https://github.com/elasticio/petstore-component-nodejs","last_synced_at":"2025-04-24T06:12:51.971Z","repository":{"id":14517988,"uuid":"72659481","full_name":"elasticio/petstore-component-nodejs","owner":"elasticio","description":"elastic.io component for the Petstore API","archived":false,"fork":false,"pushed_at":"2023-04-21T13:55:40.000Z","size":254,"stargazers_count":2,"open_issues_count":10,"forks_count":9,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-24T06:12:46.522Z","etag":null,"topics":["component","elasticio","integration","ipaas","nodejs","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/elasticio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-02T16:30:47.000Z","updated_at":"2023-01-31T16:46:00.000Z","dependencies_parsed_at":"2023-01-11T18:50:08.980Z","dependency_job_id":null,"html_url":"https://github.com/elasticio/petstore-component-nodejs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elasticio%2Fpetstore-component-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elasticio%2Fpetstore-component-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elasticio%2Fpetstore-component-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elasticio%2Fpetstore-component-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elasticio","download_url":"https://codeload.github.com/elasticio/petstore-component-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573354,"owners_count":21452352,"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":["component","elasticio","integration","ipaas","nodejs","rest-api"],"created_at":"2024-11-17T07:20:19.350Z","updated_at":"2025-04-24T06:12:51.953Z","avatar_url":"https://github.com/elasticio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Petstore Component Node.js\n\n## Description\n\nA fully working and operational component template to use for starting development of your\nown component for the [elastic.io platform](http://www.elastic.io \"elastic.io platform\").\nThis component comes with a basic architecture which you can use on the platform.\n\nThe component interacts with the [petstore sample server](https://petstore.elastic.io/docs/).\n\nOur documentation on [building components in nodejs](https://docs.elastic.io/guides/building-nodejs-component)\nhas more about each including file and their function.\n\n## Requirements\n\nTo use this component you must be registered platform user. Please see our home\npage at [https://www.elastic.io](https://www.elastic.io) to learn how to register.\n\n### Authentication\n\nTo authenticate use `secret` as an API key. For more details see the\n[Petstore API docs](https://petstore.elastic.io/docs/).\n\n## Triggers\n\n### Get Pets By Status\n\nRetrieves pets from the Petstore API by given pet status using Dynamic or Static\nData Sample. The difference is how these functions are made. However, both can have\nthe following statuses defined by the Petstore API:\n\n*   `Available` - select to get all pets with status `Available`.\n*   `Pending` - select for `Pending`.\n*   `Sold` - select for `Sold`.\n\n\n## Actions\n\n### Creates a new pet\n\nCreates a new Pet by making a `POST` to `/pet` endpoint of the API. The input\nfields are:\n\n*   `petId` (required) - the Id of the pet.\n*   `name` - the name of the pet.\n*   `status` - the status which can have one `Available`, `Pending` and `Sold` values.\n\n## File Structure\n\nThe structure of **petstore-component-nodejs** component is quite flexible.\n[elastic.io platform](https://www.elastic.io) expects only two files to be present\nin the main directory. These are the ``component.json`` and ``package.json``. Our\ndocumentation on [how to build a component in node.js](https://docs.elastic.io/guides/building-nodejs-component)\nhas more about each file and their function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felasticio%2Fpetstore-component-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felasticio%2Fpetstore-component-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felasticio%2Fpetstore-component-nodejs/lists"}