Initial commit

This commit is contained in:
2022-08-26 21:10:50 +02:00
parent f5b7072065
commit 2bf97a0194
21 changed files with 1339 additions and 2 deletions

37
5feet11.api Normal file
View File

@@ -0,0 +1,37 @@
syntax = "v1"
info (
title: "5feet11"
author: "niku"
email: "nvdpoel01@gmail.com"
)
type (
ExpandReq {
Snowflake string `path:"snowflake"`
}
ExpandResp {
RedirectUrl string `json:"redirectUrl"`
}
)
type (
ShortenReq {
RedirectUrl string `json:"redirectUrl"`
Secret string `json:"secret,optional"`
ExpiresIn int64 `json:"expiresIn,optional"`
}
ShortenResp {
Id string `json:"id"`
}
)
service fivefeeteleven-api {
@handler ExpandUrl
get /:snowflake(ExpandReq) returns(ExpandResp)
@handler ShortenUrl
post /redirect(ShortenReq) returns(ShortenResp)
}