Commit Graph

9 Commits

Author SHA1 Message Date
Luke Anderson
6cbef7b58b
Undoing changes to ChainSpec. The discrepancies from the Eth2.0 spec are necessary in our case. 2019-09-05 20:06:46 +10:00
Luke Anderson
4339e372c7
Updated the API spec.
- Moved ENR into it's own object
 - Moved the POST request parameters into the requestBody attribute (instead of query)
 - Updated IndexedAttestation to Attestation
 - Updated path for current_finalized_checkpoint
 - Completed the /spec and /spec and /spec/slots_per_epoch endpoints
 - Completed the /beacon/state/genesis endpoint
 - Completed the /spec/eth2_config endpoint
 - Fixed the prometheus example value
 - Added various example values to reflect real world values
 - Fixed incorrect indenting of Eth1Data
 - Added the whole ChainSpec schema
2019-09-05 00:39:54 +10:00
Luke Anderson
777987a49e
Updating the spec to align with what's implemented.
- Filled the OpenAPI spec for some major functions:
  - /beacon/state
  - /beacon/get_finalized_checkpoint
  - /beacon/state_root
 - Created some new schemas in the spec, such as Shard, Checkpoint, Validator, Eth1Data, BeaconState, PendingAttestation, Crosslink
2019-09-03 20:13:26 +10:00
Luke Anderson
c13f27e245
Updating REST API.
- Made /beacon/state return the current 'head' state when no parameters are provided.
 - Added some of the YAML api spec stuff to the /beacon/state endpoint in the rest_api spec.
2019-09-03 16:30:04 +10:00
Luke Anderson
eaec5e7b69
Start implementation of 'get attstation' validator function.
- Created new /beacon/validator/attestation endpoint
 - Updated some small issues with the API spec.
2019-08-29 14:58:49 +10:00
Luke Anderson
b9276da9db
Flesh spec. & update display bugs.
- Add correct string formatting when incorrect parameters provided.
 - Fill /beacon/block and /beacon/block_root endpoints
 - Add 500 error responses to endpoints as appropriate
2019-08-29 13:36:51 +10:00
Luke Anderson
5b5e458938
Flesh out the API spec for the /network endpoints. 2019-08-29 13:12:56 +10:00
Luke Anderson
ca07d72453
Removed methods for 'chain_id', since this is no longer applicable to ETH2. 2019-08-29 12:42:45 +10:00
Luke Anderson
0bd5ce65f4
Renamed the YAML spec document inside the 'docs' folder. 2019-08-28 21:26:18 +10:00