citycoins / api

A simple API to interact with Stacks and CityCoins data.
https://api.citycoins.co/docs
Apache License 2.0
9 stars 2 forks source link

Endpoint Request: /tools/get-full-city-configuration #64

Closed whoabuddy closed 2 years ago

whoabuddy commented 2 years ago

Right now the current format is:

/{cityname}/tools/get-full-city-configuration

In some cases, it may make sense to query all versions in one request, rather than splitting requests based on v1/v2/etc.

The {version} route should accept the word all, similar to how {blockheight} accepts current.

This would need to be updated in the handler and defined in the OpenAPI spec, but should be a pretty straight-forward change.

whoabuddy commented 2 years ago

This would be better off as it's own endpoint for /{cityname}/tools/get-full-city-configuration

The return type is a different shape and it would deviate from the 1 request 1 response pattern.