You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Toni Ramírez f8d01b5998 Change how TX per Batch is calculated in state API endpoint 3 years ago
..
README.md Swagger Review 4 years ago
account.go Stop using stateDB in API 3 years ago
account_test.go Add Last db view in kvdb and statedb 3 years ago
accountcreationauths.go Add semaphore for API queries to SQL 3 years ago
accountcreationauths_test.go Account API 4 years ago
api.go Stop using stateDB in API 3 years ago
api_test.go Diferentiate SQL connections by read write 3 years ago
aux_test.go Improve swagger doc 4 years ago
batch.go Add semaphore for API queries to SQL 3 years ago
batch_test.go empty array instead of 404 4 years ago
bids.go Refactor api pagination 4 years ago
bids_test.go empty array instead of 404 4 years ago
config.go Update AccountCreationAuth & fix auth.HashToSign 4 years ago
config_test.go Update AccountCreationAuth & fix auth.HashToSign 4 years ago
coordinator.go Add bootCoord to coord table, get coord by forgerAddr 4 years ago
coordinator_test.go Fix repeated items when coordinator is updated 4 years ago
docker-compose.yml Add GET histroy-transactions endpoint 4 years ago
exits.go Refactor api pagination 4 years ago
exits_test.go Swagger improvements 4 years ago
handlers.go Duplicated error when caused by meddler 3 years ago
parsers.go Add bootCoord to coord table, get coord by forgerAddr 4 years ago
parsers_test.go mv of babyjub.PublicKey to babyjub.PublicKeyComp 4 years ago
run.sh Add struct get state endpoint 4 years ago
slots.go Add semaphore for API queries to SQL 3 years ago
slots_test.go Fix repeated items when coordinator is updated 4 years ago
state.go In API recommended fee, use minFeeUSD as min value 3 years ago
state_test.go Change how TX per Batch is calculated in state API endpoint 3 years ago
swagger.yml Migrate all packages to use Float40 3 years ago
token.go Add semaphore for API queries to SQL 3 years ago
token_test.go Fix errors when fromItem is not provided 4 years ago
txshistory.go Add semaphore for API queries to SQL 3 years ago
txshistory_test.go Update TxID to avoid collisions on DB (fix #503) 3 years ago
txspool.go Merge pull request #564 from hermeznetwork/feature/api-without-statedb 3 years ago
txspool_test.go Add minPriceUSD in L2DB, check maxTxs atomically 3 years ago

README.md

Hermez API

Easy to deploy and scale API for Hermez operators. You will need to have docker and docker-compose installed on your machine in order to use this repo.

Documentation

As of now the documentation is not hosted anywhere, but you can easily do it yourself by running ./run.sh doc and then opening the documentation in your browser

Mock Up

To use a mock up of the endpoints in the API run ./run.sh doc (UI + mock up server) or ./run.sh mock (only mock up server). You can play with the mocked up endpoints using the web UI, importing swagger.yml into Postman or using your preferred language and using http://localhost:4010 as base URL.

Editor

It is recomended to edit swagger.yml using a dedicated editor as they provide spec validation and real time visualization. Of course you can use your prefered editor. To use the editor run ./run.sh editor and then opening the editor in your browser. Keep in mind that you will need to manually save the file otherwise you will lose the changes you made once you close your browser seshion or stop the server.

Note: Your browser may cache the swagger definition, so in order to see updated changes it may be needed to refresh the page without cache (Ctrl + Shift + R).