remove href from links

This commit is contained in:
Dimitri De Jonghe 2017-01-06 14:45:15 +01:00 committed by tim
parent cb4207fb32
commit 7d7a05c706

View File

@ -25,7 +25,7 @@ with something like the following in the body:
{ {
"_links": { "_links": {
"docs": { "href": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/" } "docs": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/"
}, },
"keyring": [ "keyring": [
"6qHyZew94NMmUTYyHnkZsB8cxJYuRNEiEpXHe1ih9QX3", "6qHyZew94NMmUTYyHnkZsB8cxJYuRNEiEpXHe1ih9QX3",
@ -50,12 +50,12 @@ that allows you to discover the BigchainDB API endpoints:
{ {
"_links": { "_links": {
"blocks": { "href": "https://example.com:9984/api/v1/blocks" }, "blocks": "https://example.com:9984/api/v1/blocks",
"docs": { "href": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html" }, "docs": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html",
"self": { "href": "https://example.com:9984/api/v1" }, "self": "https://example.com:9984/api/v1",
"statuses": { "href": "https://example.com:9984/api/v1/statuses" }, "statuses": "https://example.com:9984/api/v1/statuses",
"transactions": { "href": "https://example.com:9984/api/v1/transactions" }, "transactions": "https://example.com:9984/api/v1/transactions",
"votes": { "href": "https://example.com:9984/api/v1/votes" } "votes": "https://example.com:9984/api/v1/votes"
}, },
"version" : "0.9.0" "version" : "0.9.0"
} }
@ -111,11 +111,11 @@ Transactions
{ {
"_links": { "_links": {
"assets": { "href": "https://example.com:9984/api/v1/transactions?operation={CREATE|TRANSFER}&asset_id={asset_id}" }, "assets": "https://example.com:9984/api/v1/transactions?operation={CREATE|TRANSFER}&asset_id={asset_id}",
"docs": { "href": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html" }, "docs": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html",
"item": { "href": "https://example.com:9984/api/v1/transactions/{tx_id}" }, "item": "https://example.com:9984/api/v1/transactions/{tx_id}",
"self": { "href": "https://example.com:9984/api/v1/transactions" }, "self": "https://example.com:9984/api/v1/transactions",
"unspent": { "href": "https://example.com:9984/api/v1/transactions?unspent=true&public_keys={public_keys}" } "unspent": "https://example.com:9984/api/v1/transactions?unspent=true&public_keys={public_keys}"
}, },
"version" : "0.9.0" "version" : "0.9.0"
} }
@ -362,10 +362,10 @@ Blocks
{ {
"_links": { "_links": {
"blocks": { "href": "https://example.com:9984/api/v1/blocks?tx_id={tx_id}&status={VALID|UNDECIDED|INVALID}" }, "blocks": "https://example.com:9984/api/v1/blocks?tx_id={tx_id}&status={VALID|UNDECIDED|INVALID}",
"docs": { "href": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html" }, "docs": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html",
"item": { "href": "https://example.com:9984/api/v1/blocks/{block_id}?status={VALID|UNDECIDED|INVALID}" }, "item": "https://example.com:9984/api/v1/blocks/{block_id}?status={VALID|UNDECIDED|INVALID}",
"self": { "href": "https://example.com:9984/api/v1/blocks" } "self": "https://example.com:9984/api/v1/blocks"
}, },
"version" : "0.9.0" "version" : "0.9.0"
} }