Skip to content

Commit

Permalink
all: reduce tags to one and clean up sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Oct 5, 2017
1 parent fbdd4eb commit 8fcc8cb
Show file tree
Hide file tree
Showing 282 changed files with 1,162 additions and 9,938 deletions.
10 changes: 5 additions & 5 deletions client/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (h *Handler) SetRoutes(r *httprouter.Router) {
r.DELETE(ClientsHandlerPath+"/:id", h.Delete)
}

// swagger:route POST /clients oAuth2 clients hydra createOAuth2Client
// swagger:route POST /clients oAuth2 createOAuth2Client
//
// Creates an OAuth 2.0 Client
//
Expand Down Expand Up @@ -122,7 +122,7 @@ func (h *Handler) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Pa
h.H.WriteCreated(w, r, ClientsHandlerPath+"/"+c.GetID(), &c)
}

// swagger:route PUT /clients/{id} oAuth2 clients hydra updateOAuth2Client
// swagger:route PUT /clients/{id} oAuth2 updateOAuth2Client
//
// Updates an OAuth 2.0 Client
//
Expand Down Expand Up @@ -210,7 +210,7 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request, ps httprouter.P
h.H.WriteCreated(w, r, ClientsHandlerPath+"/"+c.GetID(), &c)
}

// swagger:route GET /clients oAuth2 clients hydra listOAuth2Clients
// swagger:route GET /clients oAuth2 listOAuth2Clients
//
// Lists OAuth 2.0 Clients
//
Expand Down Expand Up @@ -270,7 +270,7 @@ func (h *Handler) List(w http.ResponseWriter, r *http.Request, ps httprouter.Par
h.H.Write(w, r, clients)
}

// swagger:route GET /clients/{id} oAuth2 clients hydra getOAuth2Client
// swagger:route GET /clients/{id} oAuth2 getOAuth2Client
//
// Fetches an OAuth 2.0 Client.
//
Expand Down Expand Up @@ -338,7 +338,7 @@ func (h *Handler) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Para
h.H.Write(w, r, c)
}

// swagger:route DELETE /clients/{id} oAuth2 clients hydra deleteOAuth2Client
// swagger:route DELETE /clients/{id} oAuth2 deleteOAuth2Client
//
// Deletes an OAuth 2.0 Client
//
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package main Hydra OAuth2 & OpenID Connect Server (1.0.0-aplha1)
// Package main Hydra OAuth2 & OpenID Connect Server
//
// Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/
//
Expand Down
97 changes: 29 additions & 68 deletions docs/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"swagger": "2.0",
"info": {
"description": "Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/\n\n\nHydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure.\nHydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to.\nHydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works.\n\n\nThe official repository is located at https://github.com/ory/hydra\n\n\n### ATTENTION - IMPORTANT NOTE\n\n\nThe swagger generator used to create this documentation does currently not support example responses. To see\nrequest and response payloads click on **\"Show JSON schema\"**:\n![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png)",
"title": "Hydra OAuth2 \u0026 OpenID Connect Server (1.0.0-aplha1)",
"title": "Hydra OAuth2 \u0026 OpenID Connect Server",
"contact": {
"name": "ORY",
"url": "https://www.ory.am",
Expand Down Expand Up @@ -41,10 +41,7 @@
"https"
],
"tags": [
"oauth2",
"jsonWebKey",
"openid-connect",
"hydra"
"oauth2"
],
"summary": "Public JWKs",
"operationId": "wellKnown",
Expand Down Expand Up @@ -85,9 +82,7 @@
"https"
],
"tags": [
"oAuth2",
"openid-connect",
"hydra"
"oAuth2"
],
"summary": "Server well known configuration",
"operationId": "getWellKnown",
Expand Down Expand Up @@ -121,9 +116,7 @@
"https"
],
"tags": [
"oAuth2",
"clients",
"hydra"
"oAuth2"
],
"summary": "Lists OAuth 2.0 Clients",
"operationId": "listOAuth2Clients",
Expand Down Expand Up @@ -162,9 +155,7 @@
"https"
],
"tags": [
"oAuth2",
"clients",
"hydra"
"oAuth2"
],
"summary": "Creates an OAuth 2.0 Client",
"operationId": "createOAuth2Client",
Expand Down Expand Up @@ -218,9 +209,7 @@
"https"
],
"tags": [
"oAuth2",
"clients",
"hydra"
"oAuth2"
],
"summary": "Fetches an OAuth 2.0 Client.",
"operationId": "getOAuth2Client",
Expand Down Expand Up @@ -273,9 +262,7 @@
"https"
],
"tags": [
"oAuth2",
"clients",
"hydra"
"oAuth2"
],
"summary": "Updates an OAuth 2.0 Client",
"operationId": "updateOAuth2Client",
Expand Down Expand Up @@ -334,9 +321,7 @@
"https"
],
"tags": [
"oAuth2",
"clients",
"hydra"
"oAuth2"
],
"summary": "Deletes an OAuth 2.0 Client",
"operationId": "deleteOAuth2Client",
Expand Down Expand Up @@ -378,8 +363,7 @@
"get": {
"description": "This endpoint does not require the `X-Forwarded-Proto` header when TLS termination is set.",
"tags": [
"health",
"hydra"
"health"
],
"summary": "Check health status of instance",
"operationId": "getHealthStatus",
Expand Down Expand Up @@ -407,8 +391,7 @@
"https"
],
"tags": [
"health",
"hydra"
"health"
],
"summary": "Show instance statistics",
"operationId": "getInstanceStatistics",
Expand Down Expand Up @@ -449,8 +432,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Retrieves a JSON Web Key Set matching the set",
"operationId": "getJsonWebKeySet",
Expand Down Expand Up @@ -502,8 +484,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Updates a JSON Web Key Set",
"operationId": "updateJsonWebKeySet",
Expand Down Expand Up @@ -562,8 +543,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Generate a new JSON Web Key for a JSON Web Key Set",
"operationId": "createJsonWebKeySet",
Expand Down Expand Up @@ -622,8 +602,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Delete a JSON Web Key",
"operationId": "deleteJsonWebKeySet",
Expand Down Expand Up @@ -674,8 +653,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Retrieves a JSON Web Key Set matching the set and the kid",
"operationId": "getJsonWebKey",
Expand Down Expand Up @@ -735,8 +713,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Updates a JSON Web Key",
"operationId": "updateJsonWebKey",
Expand Down Expand Up @@ -803,8 +780,7 @@
"https"
],
"tags": [
"jsonWebKey",
"hydra"
"jsonWebKey"
],
"summary": "Delete a JSON Web Key",
"operationId": "deleteJsonWebKey",
Expand Down Expand Up @@ -860,8 +836,7 @@
"https"
],
"tags": [
"oAuth2",
"hydra"
"oAuth2"
],
"summary": "The OAuth 2.0 Auth endpoint",
"operationId": "oauthAuth",
Expand Down Expand Up @@ -892,9 +867,7 @@
"https"
],
"tags": [
"oAuth2",
"consent",
"hydra"
"oAuth2"
],
"summary": "Receive consent request information",
"operationId": "getOAuth2ConsentRequest",
Expand Down Expand Up @@ -943,9 +916,7 @@
"https"
],
"tags": [
"oAuth2",
"consent",
"hydra"
"oAuth2"
],
"summary": "Accept a consent request",
"operationId": "acceptOAuth2ConsentRequest",
Expand Down Expand Up @@ -1000,9 +971,7 @@
"https"
],
"tags": [
"oAuth2",
"consent",
"hydra"
"oAuth2"
],
"summary": "Reject a consent request",
"operationId": "rejectOAuth2ConsentRequest",
Expand Down Expand Up @@ -1057,8 +1026,7 @@
"https"
],
"tags": [
"oAuth2",
"hydra"
"oAuth2"
],
"summary": "Introspect an OAuth2 access token",
"operationId": "introspectOAuth2Token",
Expand Down Expand Up @@ -1108,8 +1076,7 @@
"https"
],
"tags": [
"oAuth2",
"hydra"
"oAuth2"
],
"summary": "Revoke an OAuth2 access token",
"operationId": "revokeOAuth2Token",
Expand Down Expand Up @@ -1154,8 +1121,7 @@
"https"
],
"tags": [
"oAuth2",
"hydra"
"oAuth2"
],
"summary": "The OAuth 2.0 Token endpoint",
"operationId": "oauthToken",
Expand Down Expand Up @@ -1191,8 +1157,7 @@
"https"
],
"tags": [
"policy",
"hydra"
"policy"
],
"summary": "List access control policies",
"operationId": "listPolicies",
Expand Down Expand Up @@ -1249,8 +1214,7 @@
"https"
],
"tags": [
"policy",
"hydra"
"policy"
],
"summary": "Create an access control policy",
"operationId": "createPolicy",
Expand Down Expand Up @@ -1303,8 +1267,7 @@
"https"
],
"tags": [
"policy",
"hydra"
"policy"
],
"summary": "Get an access control policy",
"operationId": "getPolicy",
Expand Down Expand Up @@ -1356,8 +1319,7 @@
"https"
],
"tags": [
"policy",
"hydra"
"policy"
],
"summary": "Update an access control policy",
"operationId": "updatePolicy",
Expand Down Expand Up @@ -1416,8 +1378,7 @@
"https"
],
"tags": [
"policy",
"hydra"
"policy"
],
"summary": "Delete an access control policy",
"operationId": "deletePolicy",
Expand Down
4 changes: 2 additions & 2 deletions health/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (h *Handler) SetRoutes(r *httprouter.Router) {
r.GET("/health/stats", h.Statistics)
}

// swagger:route GET /health health hydra getHealthStatus
// swagger:route GET /health health getHealthStatus
//
// Check health status of instance
//
Expand All @@ -33,7 +33,7 @@ func (h *Handler) Health(rw http.ResponseWriter, r *http.Request, _ httprouter.P
rw.Write([]byte(`{"status": "ok"}`))
}

// swagger:route GET /health/stats health hydra getInstanceStatistics
// swagger:route GET /health/stats health getInstanceStatistics
//
// Show instance statistics
//
Expand Down
Loading

0 comments on commit 8fcc8cb

Please sign in to comment.