92 Commits

Author SHA1 Message Date
Scott Sadler
53dff83ed4 Merge remote-tracking branch 'origin/master' into validationerror-refactor 2017-03-08 13:07:51 +01:00
Scott Sadler
a3fccbc599 change TransactionDoesNotExist to InputDoesNotExist in tests 2017-03-08 13:01:52 +01:00
Sylvain Bellemare
56243a57ab Fix indent 2017-03-03 18:02:57 +01:00
diminator
81dee294ea unitest for bug 2017-03-03 18:02:57 +01:00
Scott Sadler
5584de59b0 Make ValidationError a superclass of all validation errors and use it 2017-03-03 11:36:50 +01:00
Scott Sadler
57d7a3d850 fix some outstanding flake8 issues 2017-02-22 12:33:10 +01:00
Troy McConaghy
f2a05c9e3b Fixed the docs URL in HTTP API responses 2017-02-09 11:10:58 +01:00
Scott Sadler
1243322aad Case insensitive "unspent" and "operation" parameters" 2017-01-26 13:59:52 +01:00
libscott
cd7d65b63e Merge pull request #1066 from bigchaindb/1021/http_outputs_endpoint
1021/http outputs endpoint
2017-01-25 13:24:10 +01:00
Scott Sadler
7af9975081 return 202 on successful transaction POST 2017-01-25 12:23:36 +01:00
Scott Sadler
af23ff5b65 clean up use of double quotes, rename UNSPENTS_ENDPOINT, clarify test 2017-01-24 12:08:55 +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
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
Scott Sadler
897ffe81bc outputs endpoint with unspent filter parameter 2017-01-23 16:10:21 +01:00
Scott Sadler
a5acd0c7b9 document patching technique in get_transactions_filtered web view test 2017-01-23 14:07:22 +01:00
Scott Sadler
2ec23be05d fix flake8 2017-01-18 17:13:38 +01:00
Scott Sadler
ae14d0e5c4 api method to get transactions by asset_id 2017-01-18 15:43:53 +01:00
Scott Sadler
d899d4c8b6 query string parameters test 2017-01-18 15:42:17 +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
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
Brett Sun
ded7f3e28f PR comments 2017-01-13 18:25:35 +01:00
diminator
3919cc3d5d return empty list if no blocks found 2017-01-13 18:08:28 +01:00
diminator
f018a4f6e7 replace status strings by Bigchain attributes 2017-01-13 18:08:28 +01:00
diminator
1cc46fb86e return list of block_id
implement status query param
test
2017-01-13 18:08:27 +01:00
diminator
1b57ace714 implement GET /blocks endpoint 2017-01-13 18:08:25 +01:00
Brett Sun
7071d471a5 Add test for empty block_id parameter for votes API 2017-01-13 18:07:12 +01:00
libscott
ece5581eb3 Merge branch 'master' into 1021/http_api_root 2017-01-12 15:26:10 +01:00
diminator
5e3bd1d54c
rename test functions 2017-01-12 10:43:11 +01:00
diminator
af2e8e14a5
Merge remote-tracking branch 'remotes/origin/master' into feat/api/votes 2017-01-12 09:59:39 +01:00
diminator
8aa37277c2
remove blank line for travis 2017-01-11 17:17:20 +01:00
diminator
5608a36616
implement /votes endpoint 2017-01-10 11:34:10 +01:00
diminator
8fa231c040
include _links in transaction status payload 2017-01-09 17:14:22 +01:00
diminator
7124adcd34
implement statuses endpoint 2017-01-06 15:55:07 +01:00
Scott Sadler
990d863dc7 tests for informational endpoints 2017-01-06 14:46:40 +01:00
Scott Sadler
80f3bb3809 /api/v1/ informational endpoint 2017-01-06 14:46:40 +01:00
Scott Sadler
04a78aacec Merge remote-tracking branch 'origin/master' into inputs-outputs 2016-12-22 13:45:02 +01:00
Brett Sun
9319583ab4 Remove Asset and AssetLink (#982)
* Remove asset.validate_asset and move its validation checks to other areas

* Move Asset.get_asset_id to Transaction

* Remove Asset and AssetLink models

* Add test against creating TRANSFER transactions with bad asset
2016-12-22 10:19:21 +01:00
Sylvain Bellemare
fa79fe6783 Add session scope test setup for config and db
resolves #966
2016-12-20 20:37:28 +01:00
libscott
7e33f2bd52 Tx ID as Asset ID (#926)
* Allow AssetLinks to be used in place of Assets in the Transaction Model and enforce `Transaction.transfer()` to only take an AssetLink

* Remove AssetLink's inheritance from Asset

* Remove id from the Asset model

* Fix get_txids_by_asset_id query for rethinkdb after removing asset's uuid

Because `CREATE` transactions don't have an asset that contains an id
anymore, one way to find all the transactions related to an asset is to
query the database twice: once for the `CREATE` transaction and another
for the `TRANSFER` transactions.

* Add TODO notice for vote test utils to be fixtures

* Update asset model documentation to reflect usage of transaction id

* Fix outdated asset description in transaction schema
2016-12-20 17:28:15 +01:00
Scott Sadler
ed55b3984e s/fulfillments/inputs/g && s/conditions/outputs/g (code changes) 2016-12-19 12:29:29 +01:00
Sylvain Bellemare
2b9a351912 Rename owner_after to public_key 2016-12-19 04:31:05 +01:00
Sylvain Bellemare
c81e7a7479 Merge pull request #954 from sbellem/re-work-test-fixtures-iter-one
Re work test fixtures iter one
2016-12-16 20:59:27 +01:00
Sylvain Bellemare
3922b2d4fa Fix unspents endpoint 2016-12-15 17:17:18 +01:00
tim
09cbba8886 Notes, TODOs and formating 2016-12-15 17:17:18 +01:00
tim
8e8bc90742 Add unspents endpoint 2016-12-15 17:17:18 +01:00
Sylvain Bellemare
56feefe3f4 Re-work test fixtures - iteration one 2016-12-15 15:54:15 +01:00