Creating project

Overview

Below are a few command which are useful to start a project from CLI. It is also recommend to use Postman if you want to make interaction with API by graphical interface. For GET requests you can also open it in web browser.

Useful commands

# Create new project. You will get in response collection-id
curl -H "Content-Type: application/json" -X POST -d '{"url": "https://raw.githubusercontent.com/itemsapi/itemsapi-example-data/master/items/movies-processed.json"}' http://localhost:3000/api/v1/projects

# Search through new collection
curl -XGET http://localhost:3000/api/v1/items/collection-id

# Search through new collection in better format
curl -XGET http://localhost:3000/api/v1/items/collection-id | jq '.'

# Collections list
curl -XGET http://localhost:3000/api/v1/collections
Was this page helpful ?