v1
auth
auth token
Changed onController:
github.com/ubccr/grendel/internal/api.(*Handler).AuthToken
Middlewares:
- github.com/go-fuego/fuego.defaultLogger.middleware
- github.com/ubccr/grendel/internal/api.(*Handler).authMiddleware
Create API token
post/v1/auth/token
Request
- Base URLhttps://127.0.0.1:8080
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Acceptstring
Request body
Example request
{
"expire": "infinite",
"role": "admin",
"username": "user1:CLI"
}Response
OK
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking