Skip to content

Instantly share code, notes, and snippets.

@rawaludin
Created November 28, 2018 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawaludin/57c1ec984e7401804be6ffc22762feec to your computer and use it in GitHub Desktop.
Save rawaludin/57c1ec984e7401804be6ffc22762feec to your computer and use it in GitHub Desktop.
curl -X POST \
https://kong.poc-dev-us-east1.kw.com/search \
-H 'Accept: application/json' \
-H 'Authorization: Bearer E0L17SSxMSNfnak5xuL_JZ1aBuU' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"type": "domain",
"id": "patience-test",
"attributes": [
{
"name": "first_name",
"type": "text"
},
{
"name": "last_name",
"type": "text"
},
{
"name": "emails",
"type": "text"
},
{
"name": "age",
"type": "integer"
},
{
"name": "primary_phone",
"type": "phone"
},
{
"name": "addresses.city",
"type": "text"
},
{
"name": "addresses.city_2",
"type": "text"
},
{
"name": "addresses.lat",
"type": "float"
},
{
"name": "addresses.lng",
"type": "float"
},
{
"name": "addresses.is_current",
"type": "boolean"
},
{
"name": "data",
"type": "object"
}
]
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment