Skip to main content
Fixed the weird syntax highlighting (as a result, the diff looks more extensive than it really is - use view "Side-by-side Markdown" to compare).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

As an example, create a JSON file, params.jsonparams.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server 
curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server 

As an example, create a JSON file, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server 

As an example, create a JSON file, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server 
Fixed typo
Source Link
Software Engineer
  • 16.3k
  • 8
  • 87
  • 109

As an example, create a JSON file, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -XPOSTX POST --data "@params@params.json"json -u your_username:your_password http://localhost:8000/env/add_server 

As an example, create a JSON file, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -XPOST --data "@params.json" -u your_username:your_password http://localhost:8000/env/add_server 

As an example, create a JSON file, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server 
Active reading. Removed meta information (this belongs in comments).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

CreateAs an example, create a jsonJSON file as example:, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!"  } ] 

thenThen you run this command:

curl -v -H "Content-Type: application/json" -XPOST --data "@params.json" -u your_username:your_password http://localhost:8000/env/add_server 

I hope it helps!

Create a json file as example: params.json and add this content

[ { "environment": "Devel", "description": "Machine for test, please do not delete!"  } ] 

then you run this command:

curl -v -H "Content-Type: application/json" -XPOST --data "@params.json" -u your_username:your_password http://localhost:8000/env/add_server 

I hope it helps!

As an example, create a JSON file, params.json, and add this content to it:

[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] 

Then you run this command:

curl -v -H "Content-Type: application/json" -XPOST --data "@params.json" -u your_username:your_password http://localhost:8000/env/add_server 
Source Link
Loading