2395 Commits

Author SHA1 Message Date
tim
85d9553a1e owner_after --> owners_after
Querystring keywords should be in line with data model.
2017-01-25 10:31:25 +01:00
tim
e243a1be9b Use sphinx note for note in document 2017-01-25 10:31:25 +01:00
tim
0dc9b46ea7 Structural changes to the document
- Remove /unspents/ and replace with endpoint under /transactions
- Remove /transactions/txid/conditions/cid endpoint
2017-01-25 10:30:58 +01:00
tim
b488997353 tx_id --> txid 2017-01-25 10:29:12 +01:00
tim
5789a37664 Allow /statuses to return a 303 See Other response.
According to: https://www.ietf.org/rfc/rfc2616.txt a 303 See Other can
be returned to indicate that the resource the user is looking for can be
found under a new path.
In the case of a transaction including the `status == 'valid'`, we
return 303 See Other, as well as a Location header to the /transactions
endpoint.

"The response to the request can be found under a different URI and SHOULD be
retrieved using a GET method on that resource."
2017-01-25 10:29:12 +01:00
tim
71d3c70fda Status --> Statuses
Usage of singular resource names is discouraged in REST:
http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api

The plural of status is statuses:
http://english.stackexchange.com/questions/877/what-is-the-plural-form-of-status
2017-01-25 10:28:28 +01:00
tim
1086c3a5c4 POST /transactions status code to 202
According to https://www.ietf.org/rfc/rfc2616.txt a 201 Created status
code MUST only be returned when:

"The origin server MUST create the resource before returning the 201 status
code."

hence, a 202 Accepted's definition is more appropriate:

"The request has been accepted for processing, but the processing has not been
completed.

The entity returned with this response SHOULD include an indication of the
request's current status and either a pointer to a status monitor or some
estimate of when the user can expect the request to be fulfilled."
2017-01-25 10:27:52 +01:00
tim
f15a7f7e8b Document conditions endpoint 2017-01-25 10:23:14 +01:00
libscott
4802f0fabe Merge pull request #1080 from bigchaindb/no-dev-in-tx-version
short form 0.9, 0.10 etc tx version with no '.dev' suffix
2017-01-24 14:34:37 +01:00
libscott
a7a163fd3c Merge pull request #1083 from bigchaindb/single-quotes
Add flake8-quotes checker and cleanup double quotes
2017-01-24 12:07:29 +01:00
Sylvain Bellemare
7207f57879 Change to single quotes 2017-01-24 10:24:16 +01:00
Sylvain Bellemare
fe5d966dca Put back some strings with wrapped single quotes
just to double check that flake8-quotes does indeed tolerate it
2017-01-24 10:22:32 +01:00
Scott Sadler
bd048a3115 add flake8-quotes checker and cleanup double quotes 2017-01-23 17:30:37 +01:00
libscott
ad2abcf723 Merge pull request #1065 from bigchaindb/1021/http_transactions_list
1021/http transactions list
2017-01-23 16:06:07 +01:00
Troy McConaghy
616e6ce263 Merge pull request #1078 from bigchaindb/better-error-handling-in-awsdeploy.sh
Better error handling in awsdeploy.sh
2017-01-23 15:25:18 +01:00
Scott Sadler
ccdbb91c1c short form 0.9, 0.10 etc tx version with no '.dev' suffix 2017-01-23 15:16:15 +01:00
Troy McConaghy
2c78870d3a Merge pull request #1076 from bigchaindb/docs/1048/how-to-install-os-deps-for-fabric
Docs: Added instructions to install fabric's OS-level dependencies
2017-01-23 15:14:37 +01:00
Troy McConaghy
315695a486 Merge pull request #1075 from bigchaindb/docs/1023/update-os-reqs-in-quickstart-docs
Docs: Quickstart page now assumes you're using Ubuntu 16.04 or similar
2017-01-23 15:13:40 +01:00
libscott
23ba642d2c s/txes/txs/g 2017-01-23 14:38:30 +01:00
Scott Sadler
a5acd0c7b9 document patching technique in get_transactions_filtered web view test 2017-01-23 14:07:22 +01:00
Troy McConaghy
36eccb3f83 Better error handling in awsdeploy.sh 2017-01-22 16:20:13 +01:00
Troy McConaghy
98fb15c124 Added instructions to install fabric's OS-level dependencies 2017-01-22 15:07:14 +01:00
Troy McConaghy
15d28e3f91 Quickstart now assumes you're using Ubuntu 16.04 or similar 2017-01-22 14:47:45 +01:00
Rodolphe Marques
e7ffcf5705 Added replicaset name to bigchaindb config (#1063)
* Added replicaset name to bigchaindb config

* changed travis replSet to match bigchaindb default

* Updated initialize_replica_set

It now initializes the replica set with the name provided by the
bigchaindb config file.


* initialize_replica_set is now called when creating a mongodb connection.

This way we are sure that a replica set exists when we return a
connection.

* Moved the initialize replica set logic to the connection.

* update the config documentation
2017-01-20 14:05:28 +01:00
Scott Sadler
c5253825b3 remove unused backend query stub get_txids_by_asset_id 2017-01-20 10:31:28 +01:00
Scott Sadler
f2034cddde make asset_id not optional in get_transactions_filtered 2017-01-20 10:08:30 +01:00
Sylvain Bellemare
7606bdb59f Merge pull request #1070 from utarl/fix-wrong-link-in-readme
change the link to consensus.py to right one
2017-01-20 03:44:25 -05:00
utarl
ef4bc69f5b change the link to consensus.py to right one 2017-01-20 16:27:57 +08:00
Scott Sadler
2ec23be05d fix flake8 2017-01-18 17:13:38 +01:00
Troy McConaghy
3344fdfe50 Merge pull request #1053 from bigchaindb/docs/1047/long-description-in-setup-py
In setup.py: longer long_description & updated the docs URL
2017-01-18 16:00:03 +01:00
Scott Sadler
ae14d0e5c4 api method to get transactions by asset_id 2017-01-18 15:43:53 +01:00
Scott Sadler
1c918caf4c txlist / get_transactions_filtered 2017-01-18 15:42:47 +01:00
Scott Sadler
dbb3414fd0 generalise get_txids_by_asset_id into get_txids_filtered and remove get_transactions_by_asset_id 2017-01-18 15:42:47 +01:00
Scott Sadler
d899d4c8b6 query string parameters test 2017-01-18 15:42:17 +01:00
Troy McConaghy
e54854c082 In setup.py: enterprise --> enterprises 2017-01-18 15:41:29 +01:00
libscott
8e497347d5 Merge pull request #1043 from bigchaindb/duplicate-asset-id
duplicate tx.id into tx.asset.id in CREATE transactions
2017-01-17 15:00:33 +01:00
libscott
a706d88b30 Merge pull request #1051 from bigchaindb/fix/norandom-test_get_spent_multiple_owners
Remove use of random in test_bigchain_api
2017-01-17 14:54:07 +01:00
Brett Sun
b59ea00118 Merge pull request #1031 from bigchaindb/feat/api/blocks
Implement blocks endpoint
2017-01-17 14:42:24 +01:00
Brett Sun
0751b2bf0b Merge pull request #1029 from bigchaindb/feat/api/votes
Implement votes endpoint
2017-01-17 14:42:02 +01:00
Troy McConaghy
8307c09b92 Updated docs URL in setup.py 2017-01-17 14:21:54 +01:00
Troy McConaghy
d5143f99d8 Longer long_description in setup.py 2017-01-17 14:21:08 +01:00
Sylvain Bellemare
1dbc998b36 Only fetch needed element (public key) 2017-01-17 07:50:00 -05:00
Sylvain Bellemare
5759de6ae3 Remove unused fixture 2017-01-17 07:50:00 -05:00
Sylvain Bellemare
9766aa90a1 Addresses #663 partially 2017-01-17 07:50:00 -05:00
Sylvain Bellemare
c1b6f60f70 Add an exception message 2017-01-17 07:50:00 -05:00
Scott Sadler
7c4c7e9be3 remove use of random in test_bigchain_api 2017-01-17 11:48:58 +01:00
libscott
da69aa11f1 Update test_digital_assets.py
On mobile!
2017-01-16 17:47:51 +01:00
Scott Sadler
d9cf4df5e6 duplicate asset id / fix test_get_transactions_by_asset_id 2017-01-16 16:08:15 +01:00
Scott Sadler
71e52ed36b duplicate asset id / fix get-by-asset-id in rethinkdb 2017-01-16 15:48:10 +01:00
Scott Sadler
d7126169f4 duplicate asset id / fix flake8 errors 2017-01-16 15:41:26 +01:00