Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cq-bot authored Aug 28, 2024
1 parent 9fe6755 commit 2633071
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 0 deletions.
142 changes: 142 additions & 0 deletions client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3576,6 +3576,45 @@
}
},
"/user/login" : {
"delete" : {
"description" : "Logout a session",
"operationId" : "LogoutUser",
"responses" : {
"204" : {
"description" : "Logout is complete.",
"headers" : {
"Set-Cookie" : {
"description" : "Empty session cookie",
"explode" : false,
"schema" : {
"example" : "__session=; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600",
"type" : "string"
},
"style" : "simple"
}
}
},
"400" : {
"$ref" : "#/components/responses/BadRequest"
},
"401" : {
"$ref" : "#/components/responses/RequiresAuthentication"
},
"403" : {
"$ref" : "#/components/responses/Forbidden"
},
"404" : {
"$ref" : "#/components/responses/NotFound"
},
"405" : {
"$ref" : "#/components/responses/MethodNotAllowed"
},
"500" : {
"$ref" : "#/components/responses/InternalError"
}
},
"tags" : [ "users" ]
},
"post" : {
"description" : "Start a session using ID token",
"operationId" : "LoginUser",
Expand Down

0 comments on commit 2633071

Please sign in to comment.