Skip to content

Instantly share code, notes, and snippets.

@judavi
Last active August 16, 2019 13:25
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 judavi/9cf9b65e6091880121835b2e8786cfb3 to your computer and use it in GitHub Desktop.
Save judavi/9cf9b65e6091880121835b2e8786cfb3 to your computer and use it in GitHub Desktop.
Grafeas Insert Test Data
docker run -e POSTGRES_PASSWORD=password -e POSTGRES_USER=postgres -p 5432:5432 -d postgres
curl -X POST "http://localhost:8080/v1beta1/projects" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"projects/user\"}"
curl -X POST "http://localhost:8080/v1beta1/projects/user/notes?note_id=commonrfq" -H "accept: application/json" -H "Content-Type: application/json" -d @note.json
curl -X POST "http://localhost:8080/v1beta1/projects/user/occurrences" -H "accept: application/json" -H "Content-Type: application/json" -d @ocurrence.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment