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

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{\"firstName\": \"blablabla\",\"lastName\": \"dummy\",\"id\": \"123456\"}" http-host/_ah/api/employeeendpoint/v1/employee 
curl -X POST -H "Content-Type:application/json" -d "{\"firstName\": \"blablabla\",\"lastName\": \"dummy\",\"id\": \"123456\"}" http-host/_ah/api/employeeendpoint/v1/employee 

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{\"firstName\": \"blablabla\",\"lastName\": \"dummy\",\"id\": \"123456\"}" http-host/_ah/api/employeeendpoint/v1/employee 

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{\"firstName\": \"blablabla\",\"lastName\": \"dummy\",\"id\": \"123456\"}" http-host/_ah/api/employeeendpoint/v1/employee 
added 4 characters in body
Source Link
NorthCat
  • 10k
  • 16
  • 51
  • 56

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{"firstName": "blablabla","lastName": "dummy","id": "123456"}" http-host/_ah/api/employeeendpoint/v1/employee

curl -X POST -H "Content-Type:application/json" -d "{\"firstName\": \"blablabla\",\"lastName\": \"dummy\",\"id\": \"123456\"}" http-host/_ah/api/employeeendpoint/v1/employee 

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{"firstName": "blablabla","lastName": "dummy","id": "123456"}" http-host/_ah/api/employeeendpoint/v1/employee

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{\"firstName\": \"blablabla\",\"lastName\": \"dummy\",\"id\": \"123456\"}" http-host/_ah/api/employeeendpoint/v1/employee 
Source Link

Using CURL Windows, try this:

curl -X POST -H "Content-Type:application/json" -d "{"firstName": "blablabla","lastName": "dummy","id": "123456"}" http-host/_ah/api/employeeendpoint/v1/employee