forked from pepa58/hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improve client swagger specs and add jwk specs
- Loading branch information
Showing
7 changed files
with
1,277 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
// Package client implements the OAuth 2.0 Client functionality and provides http handlers, http clients and storage adapters. | ||
package client | ||
|
||
// swagger:parameters createOAuthClient | ||
type swaggerCreateClientPayload struct { | ||
// in: body | ||
// required: true | ||
Body Client | ||
} | ||
|
||
// swagger:parameters updateOAuthClient | ||
type swaggerUpdateClientPayload struct { | ||
// in: path | ||
// required: true | ||
ID string `json:"id"` | ||
|
||
// in: body | ||
// required: true | ||
Body Client | ||
} | ||
|
||
// A list of clients. | ||
// swagger:response clientsList | ||
type swaggerListClientsResult struct { | ||
// in: body | ||
Body []Client | ||
} | ||
|
||
// swagger:parameters getOAuthClient deleteOAuthClient | ||
type swaggerQueryClientPayload struct { | ||
// The id of the OAuth 2.0 Client. | ||
// | ||
// unique: true | ||
// in: path | ||
ID string `json:"id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
// Host: | ||
// BasePath: / | ||
// Version: Latest | ||
// License: MIT https://github.com/ory/hydra/blob/master/LICENSE | ||
// License: Apache 2.0 https://github.com/ory/hydra/blob/master/LICENSE | ||
// Contact: ORY <[email protected]> https://www.ory.am | ||
// | ||
// Consumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
package main | ||
|
||
// A genericError is the error format of Hydra's RESTful APIs. | ||
// The standard error format | ||
// swagger:response genericError | ||
type genericError struct { | ||
// in: body | ||
body struct { | ||
// code | ||
code int `json:"code,omitempty"` | ||
Body struct { | ||
Code int `json:"code,omitempty"` | ||
|
||
// status | ||
status string `json:"status,omitempty"` | ||
// request | ||
request string `json:"request,omitempty"` | ||
Status string `json:"status,omitempty"` | ||
|
||
// reason | ||
reason string `json:"reason,omitempty"` | ||
Request string `json:"request,omitempty"` | ||
|
||
// details | ||
details []map[string]interface{} `json:"details,omitempty"` | ||
Reason string `json:"reason,omitempty"` | ||
|
||
Details []map[string]interface{} `json:"details,omitempty"` | ||
|
||
// message | ||
message string `json:"message"` | ||
Message string `json:"message"` | ||
} | ||
} |
Oops, something went wrong.