Push Data with API REST in Algolia

  algolia, api, javascript, rest

I’m learning to use angolia, but I have a question about it. Is it possible to push data to an index with API REST?

I have only seen to use API CLIENT, installed for Javascript with npm, but I don’t want to install it.

what I want it’s something like that:

    curl -X POST 'https://places-dsn.algolia.net/1/places/query' 
  -H 'X-Algolia-Application-Id: YourApplicationId' 
  -H 'X-Algolia-API-Key: YourAPIKey' 
  --data '{"query": "Paris"}

Source: Ask Javascript Questions

LEAVE A COMMENT