Last active
August 29, 2015 14:04
-
-
Save giastfader/ea02b053b0404358db14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Project definition | |
| { | |
| "name":"Project name", | |
| "url":"http://projectname.com", | |
| "issues":[{issue},{issue}] //see definition below | |
| } | |
| //Issue definition | |
| { | |
| "title":"A nasty bug", | |
| "content":"the login mechanism actually logs out the user", | |
| "status":"OPEN|ONGOING|WONTFIX|RESOLVED", | |
| "assignee":"Johnny Depp", | |
| "reported by":"Tim burton" | |
| "tags":["UI","Backend","Testing"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT http://localhost:9000/document/projects/<id>/.issues%5B0%5D/.status -d '{"data" : "ONGOING"}' -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "result":"ok", | |
| "data":{ | |
| "@rid":"#23:0", | |
| "@version":5, | |
| "@class":"projects", | |
| "name":"Bugbox", | |
| "url":"http://bugbox.com", | |
| "issues":[ | |
| { | |
| "title":"Create a tutorial for single field query", | |
| "content":"Write an awesome tutorial about how a user can retrieve the list of issues for a given project", | |
| "status":"ONGOING", | |
| "assignee":"me", | |
| "reported by":"me", | |
| "tags":[ | |
| "Tutorial" | |
| ] | |
| } | |
| ], | |
| "id":<id>, | |
| "_creation_date":"2014-07-11T13:34:15.015+0200", | |
| "_author":"admin" | |
| }, | |
| "http_code":200 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT http://localhost:9000/document/projects/<id>/.issues%5B0%5D/.tags%5B1%5D -d '{"data" : "Awesome Feature"}' -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "result":"ok", | |
| "data":{ | |
| "@rid":"#23:0", | |
| "@version":6, | |
| "@class":"projects", | |
| "name":"Bugbox", | |
| "url":"http://bugbox.com", | |
| "issues":[ | |
| { | |
| "title":"Create a tutorial for single field query", | |
| "content":"Write an awesome tutorial about how a user can retrieve the list of issues for a given project", | |
| "status":"ONGOING", | |
| "assignee":"me", | |
| "reported by":"me", | |
| "tags":[ | |
| "Tutorial", | |
| "Awesome Feature" | |
| ] | |
| } | |
| ], | |
| "id":<id>, | |
| "_creation_date":"2014-07-11T13:34:15.015+0200", | |
| "_author":"admin" | |
| }, | |
| "http_code":200 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT http://localhost:9000/document/projects/<id>/.issues %5B0%5D/.comments -d '{"data" : [{"commenter":"me","comment":"A nice feature inedeed,mate!"}]}' -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "result":"ok", | |
| "data":{ | |
| "@rid":"#23:0", | |
| "@version":7, | |
| "@class":"projects", | |
| "name":"Bugbox", | |
| "url":"http://bugbox.wrong", | |
| "issues":[ | |
| { | |
| "title":"Create a tutorial for single field query", | |
| "content":"Write an awesome tutorial about how a user can retrieve the list of issues for a given project", | |
| "status":"ONGOING", | |
| "assignee":"me", | |
| "reported by":"me", | |
| "tags":[ | |
| "Tutorial", | |
| "Awesome Feature" | |
| ], | |
| "comments":[ | |
| { | |
| "commenter":"me", | |
| "comment":"A nice feature inedeed,mate!" | |
| } | |
| ] | |
| } | |
| ], | |
| "id":"1c506c13-a65f-4026-ad5d-c18a3bb2187d", | |
| "_creation_date":"2014-07-11T13:34:15.015+0200", | |
| "_author":"admin" | |
| }, | |
| "http_code":200 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST http://localhost:9000/admin/collection/projects -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name":"Bugbox", | |
| "url":"http://bugbox.wrong", | |
| "issues":[ | |
| { | |
| "title":"Create a tutorial for single field query", | |
| "content":"Write an awesome tutorial about how a user can retrieve the list of issues for a given project", | |
| "status":"OPEN", | |
| "assignee":"me", | |
| "reported by":"me", | |
| "tags":["Tutorial"] | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST http://localhost:9000/document/projects -d @project.json -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT http://localhost:9000/document/projects/<id>/.url -d '{"data" : "http://bugbox.com"}' -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl http://localhost:9000/document/projects/<id>/.url -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "result":"ok", | |
| "data":{ | |
| "result":"http://bugbox.com" | |
| }, | |
| "http_code":200 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl http://localhost:9000/document/projects/<id>/.issues -H Content-type:application/json -H X-BB-SESSION:6fce45a1-4f69-443f-ae45-c16270c9c9fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "result":"ok", | |
| "data":{ | |
| "result":[ | |
| {"title":"Create a tutorial for single field query", | |
| "content":"Write an awesome tutorial about how a user can retrieve the list of issues for a given project", | |
| "status":"OPEN", | |
| "assignee":"me", | |
| "reported by":"me", | |
| "tags":["Tutorial"] | |
| }] | |
| }, | |
| "http_code":200 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment