You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, I just can't understand what it means in this context.
Drop cache from endpoint names
As an endpoint consumer, I don't care if it a source of truth or it caches some third-party data source (for example, cache/prices endpoint). Also, it is obvious that we are working with cached data if we are fetching something that is already presented in a smart contract. Maybe we can explain that these endpoints caching in the documentation instead?
Unclear and inconsistent usage of api
I assume that all endpoints are kind of api, but currently, it is used in blacklist/api/wallet and comment/api/..., I don't see any collisions or misunderstoodnes if we just remove api from that endpoint names.
Combine /static/stats and /cache/stats into just /stats
In superhero-ui they are queried at the same time. In general, I don't see reasons to split these endpoints.
Rename claim/submit to claim
Sending a POST request to claim endpoint already means submitting some data.
Rename profile/image/:address to profile/:address/image
To have it consistent with profile/:address endpoints.
Rename cache/userStats?address=:address to profile/:address/stats
The same as the above.
The text was updated successfully, but these errors were encountered:
I agree with the general idea that we need to streamline the API naming and come up with a proper convention but we should check our priority on this as it will require changes in all connected clients as well.
Drop
static
from endpoint namesActually, I just can't understand what it means in this context.
Drop
cache
from endpoint namesAs an endpoint consumer, I don't care if it a source of truth or it caches some third-party data source (for example,
cache/prices
endpoint). Also, it is obvious that we are working with cached data if we are fetching something that is already presented in a smart contract. Maybe we can explain that these endpoints caching in the documentation instead?Unclear and inconsistent usage of
api
I assume that all endpoints are kind of
api
, but currently, it is used inblacklist/api/wallet
andcomment/api/...
, I don't see any collisions or misunderstoodnes if we just removeapi
from that endpoint names.Combine
/static/stats
and/cache/stats
into just/stats
In
superhero-ui
they are queried at the same time. In general, I don't see reasons to split these endpoints.Rename
claim/submit
toclaim
Sending a POST request to
claim
endpoint already means submitting some data.Rename
profile/image/:address
toprofile/:address/image
To have it consistent with
profile/:address
endpoints.Rename
cache/userStats?address=:address
toprofile/:address/stats
The same as the above.
The text was updated successfully, but these errors were encountered: