Add public api support #229
Notifications
Due Date
No due date set.
Blocks
#20 Cut Down Maps Fields
StrafesNET/public-api
#223 Public api: /map/ doesn't provide which modes a map supports
StrafesNET/maps-service
#224 Public api: Map info is missing play count
StrafesNET/maps-service
Reference: StrafesNET/maps-service#229
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a read only api that can be queried with an API token from the dev service. Call https://git.itzana.me/StrafesNET/protobufs/src/branch/master/dev.proto#L8 and it will return if the request can proceed or not. Authn/Authz is built in as well as rate limiting so just calling this method is all you need beyond roles.
Ideally, follow the pattern the public api established for how errors/data is formatted.
I've created a gRPC validator backend in #238, and the beginnings of a general purpose gRPC is in #241 at
pkg/controller/maps.go, starting with just maps. This could be extended to mapfixes & submissions and used from the public api in the same way as the data-service gRPC.This will provide the ability to fetch extended map metadata such as Creator and Date. I should implement this before I remove that information from the data-service, otherwise it is inaccessible from the public api.