Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding example of using the API endpoint #466

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicolae-stroncea
Copy link

No description provided.

##### Example using the API Endpoints

```bash
$ curl -X POST -H "Content-Type: application/json" -d '{"enabled": false}' localhost:26913/proxies/shopify_development_memcached
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear why localhost:26913? Would it better to use default port?


```bash
$ curl -X POST -H "Content-Type: application/json" -d '{"enabled": false}' localhost:26913/proxies/shopify_development_memcached
{"name":"shopify_development_memcached","listen":"127.0.0.1:20915","upstream":"localhost:62070","enabled":false,"toxics":[]}%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the last character %, I think it is PROMT from shell.

@miry miry self-assigned this Nov 18, 2022
@miry miry added the docs label Nov 18, 2022
@dianadevasia dianadevasia deleted the branch main April 20, 2023 16:13
@dianadevasia dianadevasia reopened this Apr 24, 2023
@dianadevasia dianadevasia changed the base branch from master to main April 24, 2023 15:37
@miry miry removed their assignment May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants