init
This commit is contained in:
29
api/Authenticator.api
Normal file
29
api/Authenticator.api
Normal file
@@ -0,0 +1,29 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "Authenticator API"
|
||||
desc: "Authenticator API"
|
||||
author: "cialloo"
|
||||
date: "2025-10-07"
|
||||
version: "v1"
|
||||
)
|
||||
|
||||
type (
|
||||
PingReq {}
|
||||
PingResp {
|
||||
ok bool `json:"ok"`
|
||||
}
|
||||
)
|
||||
|
||||
@server (
|
||||
prefix: /api/authenticator
|
||||
)
|
||||
service Authenticator {
|
||||
@doc (
|
||||
summary: "Ping the server to check if it's alive"
|
||||
description: "Ping the server to check if it's alive"
|
||||
)
|
||||
@handler pingHandler
|
||||
get /ping (PingReq) returns (PingResp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user