TrueBlocks / trueblocks-core

The main repository for the TrueBlocks system
https://trueblocks.io
GNU General Public License v3.0
1.04k stars 194 forks source link

Insustry standard URL for our API #3639

Closed tjayrush closed 1 month ago

tjayrush commented 2 months ago

I feel like our API is odd. Shouldn't it be

http://localhost:8080/blocks/:id/

or maybe even

http://localhost:8080/v3/blocks/:id/

(with a version string?)

Then we can remove things like http://localhost:8080/blocks?blocks=12 or http://localhost:8080/chunks?modes=index

Should be http://localhost:8080/chunks/index (I think.)

dszlachta commented 2 months ago

Agree, it'd make much more sense