-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make install and request doc for API resources
- Loading branch information
Showing
15 changed files
with
680 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,3 +75,6 @@ ENV/ | |
|
||
# IDEA | ||
.idea/ | ||
|
||
# Barrenero services | ||
barrenero-*/ |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.. | ||
Barrenero, a set of services and tools for effective mining cryptocurrencies. | ||
Copyright (C) 2017 José Antonio Perdiguero López | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
Ether Miner Nanopool | ||
==================== | ||
|
||
Retrieve Ether nanopool status. | ||
|
||
Request | ||
------- | ||
|
||
URL | ||
^^^ | ||
|
||
`/api/v1/ether/nanopool` | ||
|
||
Headers | ||
^^^^^^^ | ||
|
||
Authorization | ||
Token <auth_token> | ||
|
||
Response | ||
-------- | ||
|
||
.. code:: javascript | ||
{ | ||
"balance": { | ||
"confirmed": float, | ||
"unconfirmed": float | ||
}, | ||
"hashrate": { | ||
"current": float, | ||
"one_hour": float, | ||
"three_hours": float, | ||
"six_hours": float, | ||
"twelve_hours": float, | ||
"twenty_four_hours": float | ||
}, | ||
"workers": [ | ||
{ | ||
"id": string, | ||
"hashrate": float | ||
} | ||
], | ||
"last_payment": { | ||
"date": string, | ||
"hash": string, | ||
"value": float, | ||
"confirmed": bool | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. | ||
Barrenero, a set of services and tools for effective mining cryptocurrencies. | ||
Copyright (C) 2017 José Antonio Perdiguero López | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
Ether Miner Status | ||
================== | ||
|
||
Retrieve Ether miner status. | ||
|
||
Request | ||
------- | ||
|
||
URL | ||
^^^ | ||
|
||
`/api/v1/ether/status` | ||
|
||
Headers | ||
^^^^^^^ | ||
|
||
Authorization | ||
Token <auth_token> | ||
|
||
Response | ||
-------- | ||
|
||
.. code:: javascript | ||
{ | ||
"status": "active", | ||
"hashrate": [ | ||
{ | ||
"graphic_card": int, | ||
"hashrate": float | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. | ||
Barrenero, a set of services and tools for effective mining cryptocurrencies. | ||
Copyright (C) 2017 José Antonio Perdiguero López | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
Login User | ||
========== | ||
|
||
Retrieve user token and user given username and password. | ||
|
||
Request | ||
------- | ||
|
||
URL | ||
^^^ | ||
|
||
`/api/v1/auth/user` | ||
|
||
Parameters | ||
^^^^^^^^^^ | ||
|
||
Username | ||
Name to register user | ||
|
||
Password | ||
Password to register user | ||
|
||
Response | ||
-------- | ||
|
||
.. code:: javascript | ||
{ | ||
"username": string, | ||
"account": string, | ||
"is_api_superuser": bool, | ||
"token": string | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.. | ||
Barrenero, a set of services and tools for effective mining cryptocurrencies. | ||
Copyright (C) 2017 José Antonio Perdiguero López | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
Register User | ||
============= | ||
|
||
Register a new user providing username, password, account and API password. | ||
|
||
Request | ||
------- | ||
|
||
URL | ||
^^^ | ||
|
||
`/api/v1/auth/register` | ||
|
||
Parameters | ||
^^^^^^^^^^ | ||
|
||
Username | ||
Name to register user | ||
|
||
Password | ||
Password to register user | ||
|
||
Account | ||
Ethereum wallet account, starting with *0x*. | ||
|
||
API Password | ||
Password used to identify as a API superuser, that gives access to methods such restarting services. | ||
|
||
Response | ||
-------- | ||
|
||
.. code:: javascript | ||
{ | ||
"username": string, | ||
"account": string, | ||
"is_api_superuser": bool, | ||
"token": string | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.. | ||
Barrenero, a set of services and tools for effective mining cryptocurrencies. | ||
Copyright (C) 2017 José Antonio Perdiguero López | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
Restart Service | ||
=============== | ||
|
||
Restart a Barrenero's Systemd service giving the name. | ||
|
||
Request | ||
------- | ||
|
||
URL | ||
^^^ | ||
|
||
`/api/v1/restart` | ||
|
||
Headers | ||
^^^^^^^ | ||
|
||
Authorization | ||
Token <auth_token> | ||
|
||
Parameters | ||
^^^^^^^^^^ | ||
|
||
name | ||
Systemd service name to restart | ||
|
||
Response | ||
-------- | ||
|
||
.. code:: javascript | ||
{ | ||
"name": "barrenero_miner_ether", | ||
"status": "restarted" | ||
} |
Oops, something went wrong.