Skip to content

Instantly share code, notes, and snippets.

@jaehwang
Last active March 19, 2019 06:02
Show Gist options
  • Save jaehwang/1b171f89e988383b7df9f912622efa75 to your computer and use it in GitHub Desktop.
Save jaehwang/1b171f89e988383b7df9f912622efa75 to your computer and use it in GitHub Desktop.
codeBeamer REST API Examples
$ curl -v -u user:pass http://localhost:8888/cb/rest/user/1/items/page/1

$ curl -v -u user:pass http://localhost:8888/cb/rest/tracker/2201/newItem

$ cat newitem.json
{
    "version" : 2,
    "tracker" : "/tracker/2201",
    "name" : "Title comes here",
    "status" : "New",
    "submitter" : {
      "uri" : "/user/1",
      "name" : "user"
    },
    "descFormat" : "Wiki",
    "description" : "Bla bla\n[http://example.com/image.jpg]"
}

$ curl -0 -v -X POST -u user:pass http://localhost:8888/cb/rest/item --data-binary @newitem.json --header "Content-Type: application/json; charset=utf-8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment