{"id":23240840,"url":"https://github.com/brooswit/openapitest","last_synced_at":"2025-04-05T22:32:38.459Z","repository":{"id":90351559,"uuid":"102903079","full_name":"brooswit/openapitest","owner":"brooswit","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-08T21:03:48.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T16:02:44.382Z","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/brooswit.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":"2017-09-08T20:45:43.000Z","updated_at":"2017-09-08T23:47:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"999f4d87-7388-4f87-ad97-0eee7a75c075","html_url":"https://github.com/brooswit/openapitest","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/brooswit%2Fopenapitest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooswit%2Fopenapitest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooswit%2Fopenapitest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooswit%2Fopenapitest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brooswit","download_url":"https://codeload.github.com/brooswit/openapitest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411237,"owners_count":20934650,"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-12-19T05:14:21.573Z","updated_at":"2025-04-05T22:32:38.454Z","avatar_url":"https://github.com/brooswit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchDarkly REST API Bash client\n\n## Overview\nThis is a Bash client script for accessing LaunchDarkly REST API service.\n\nThe script uses  cURL underneath for making all REST calls.\n\n## Usage\n\n```shell\n# Make sure the script has executable rights\n$ chmod u+x \n\n# Print the list of operations available on the service\n$ ./ -h\n\n# Print the service description\n$ ./ --about\n\n# Print detailed information about specific operation\n$ ./ \u003coperationId\u003e -h\n\n# Make GET request\n./ --host http://\u003chostname\u003e:\u003cport\u003e --accept xml \u003coperationId\u003e \u003cqueryParam1\u003e=\u003cvalue1\u003e \u003cheader_key1\u003e:\u003cheader_value2\u003e\n\n# Make GET request using arbitrary curl options (must be passed before \u003coperationId\u003e) to an SSL service using username:password\n -k -sS --tlsv1.2 --host https://\u003chostname\u003e -u \u003cuser\u003e:\u003cpassword\u003e --accept xml \u003coperationId\u003e \u003cqueryParam1\u003e=\u003cvalue1\u003e \u003cheader_key1\u003e:\u003cheader_value2\u003e\n\n# Make POST request\n$ echo '\u003cbody_content\u003e' |  --host \u003chostname\u003e --content-type json \u003coperationId\u003e -\n\n# Make POST request with simple JSON content, e.g.:\n# {\n#   \"key1\": \"value1\",\n#   \"key2\": \"value2\",\n#   \"key3\": 23\n# }\n$ echo '\u003cbody_content\u003e' |  --host \u003chostname\u003e --content-type json \u003coperationId\u003e key1==value1 key2=value2 key3:=23 -\n\n# Preview the cURL command without actually executing it\n$  --host http://\u003chostname\u003e:\u003cport\u003e --dry-run \u003coperationid\u003e\n\n```\n\n## Docker image\nYou can easily create a Docker image containing a preconfigured environment\nfor using the REST Bash client including working autocompletion and short\nwelcome message with basic instructions, using the generated Dockerfile:\n\n```shell\ndocker build -t my-rest-client .\ndocker run -it my-rest-client\n```\n\nBy default you will be logged into a Zsh environment which has much more\nadvanced auto completion, but you can switch to Bash, where basic autocompletion\nis also available.\n\n## Shell completion\n\n### Bash\nThe generated bash-completion script can be either directly loaded to the current Bash session using:\n\n```shell\nsource .bash-completion\n```\n\nAlternatively, the script can be copied to the `/etc/bash-completion.d` (or on OSX with Homebrew to `/usr/local/etc/bash-completion.d`):\n\n```shell\nsudo cp .bash-completion /etc/bash-completion.d/\n```\n\n#### OS X\nOn OSX you might need to install bash-completion using Homebrew:\n```shell\nbrew install bash-completion\n```\nand add the following to the `~/.bashrc`:\n\n```shell\nif [ -f $(brew --prefix)/etc/bash_completion ]; then\n  . $(brew --prefix)/etc/bash_completion\nfi\n```\n\n### Zsh\nIn Zsh, the generated `_` Zsh completion file must be copied to one of the folders under `$FPATH` variable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrooswit%2Fopenapitest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrooswit%2Fopenapitest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrooswit%2Fopenapitest/lists"}