{{template "base" .}} {{define "content"}}

APIキー管理

{{if .error}}
{{.error}}
{{end}} {{if .newKey}}
APIキーが作成されました

キー名: {{.newKeyName}}

以下のキーを安全な場所に保存してください。このキーは二度と表示されません。


{{.newKey}}
{{end}}
新規APIキー作成
{{.csrfField}}
{{if .apiKeys}}
{{range .apiKeys}} {{end}}
ID キー名 作成者 最終使用 作成日 操作
{{.ID}} {{.Name}} {{if .User}}{{.User.Name}}{{else}}-{{end}} {{if .LastUsed}}{{formatDateTime .LastUsed}}{{else}}未使用{{end}} {{formatDate .CreatedAt}}
{{else}}

APIキーがありません

上のフォームから新しいAPIキーを作成してください。

{{end}}
API使用方法

APIにアクセスするには、AuthorizationヘッダーにAPIキーを設定してください:

curl -H "Authorization: Bearer YOUR_API_KEY" http://localhost:8080/api/v1/assignments
利用可能なエンドポイント:
{{end}} {{define "scripts"}} {{end}}