Skip to content

Commit

Permalink
#610 - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Dec 14, 2023
1 parent b58a3c9 commit 07de0cf
Show file tree
Hide file tree
Showing 7 changed files with 782 additions and 1,080 deletions.
240 changes: 149 additions & 91 deletions daikoku/app/controllers/AdminApiController.scala

Large diffs are not rendered by default.

1,043 changes: 96 additions & 947 deletions daikoku/app/utils/admin.scala

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion daikoku/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ POST /admin-api/state/import fr.maif.otoroshi.daikoku
DELETE /admin-api/tenants/:id fr.maif.otoroshi.daikoku.ctrls.TenantAdminApiController.deleteEntity(id)
PATCH /admin-api/tenants/:id fr.maif.otoroshi.daikoku.ctrls.TenantAdminApiController.patchEntity(id)
PUT /admin-api/tenants/:id fr.maif.otoroshi.daikoku.ctrls.TenantAdminApiController.updateEntity(id)

GET /admin-api/tenants/:id fr.maif.otoroshi.daikoku.ctrls.TenantAdminApiController.findById(id)
POST /admin-api/tenants fr.maif.otoroshi.daikoku.ctrls.TenantAdminApiController.createEntity()
GET /admin-api/tenants fr.maif.otoroshi.daikoku.ctrls.TenantAdminApiController.findAll()
Expand Down
48 changes: 24 additions & 24 deletions daikoku/public/swaggers/admin-api-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8835,10 +8835,10 @@
]
}
},
"/integration-api/apis": {
"integration-api/apis": {
"get": {
"summary": "get all public apis for integration",
"operationId": "/integration-api.findallapis",
"operationId": "integration-api.findallapis",
"responses": {
"200": {
"description": "List of public APIs",
Expand Down Expand Up @@ -8885,14 +8885,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}": {
"integration-api/{teamId}": {
"get": {
"summary": "get all teams for integration",
"operationId": "/integration-api.findallateams",
"operationId": "integration-api.findallateams",
"responses": {
"200": {
"description": "List of teams",
Expand Down Expand Up @@ -8947,14 +8947,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}/{apiId}/complete": {
"integration-api/{teamId}/{apiId}/complete": {
"get": {
"summary": "get complete API for integration",
"operationId": "/integration-api.findcompleteapi",
"operationId": "integration-api.findcompleteapi",
"responses": {
"200": {
"description": "Complete API",
Expand Down Expand Up @@ -9014,14 +9014,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}/{apiId}/description": {
"integration-api/{teamId}/{apiId}/description": {
"get": {
"summary": "get API description",
"operationId": "/integration-api.findapidescription",
"operationId": "integration-api.findapidescription",
"responses": {
"200": {
"description": "API description",
Expand Down Expand Up @@ -9081,14 +9081,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}/{apiId}/plans": {
"integration-api/{teamId}/{apiId}/plans": {
"get": {
"summary": "get API plans",
"operationId": "/integration-api.findapiplans",
"operationId": "integration-api.findapiplans",
"responses": {
"200": {
"description": "API plans",
Expand Down Expand Up @@ -9148,14 +9148,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}/{apiId}/documentation": {
"integration-api/{teamId}/{apiId}/documentation": {
"get": {
"summary": "get API documentation",
"operationId": "/integration-api.findapidocumentation",
"operationId": "integration-api.findapidocumentation",
"responses": {
"200": {
"description": "API documentation",
Expand Down Expand Up @@ -9215,14 +9215,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}/{apiId}/apidoc": {
"integration-api/{teamId}/{apiId}/apidoc": {
"get": {
"summary": "get API description",
"operationId": "/integration-api.findapidoc",
"operationId": "integration-api.findapidoc",
"responses": {
"200": {
"description": "API doc (swagger)",
Expand Down Expand Up @@ -9282,14 +9282,14 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
},
"/integration-api/{teamId}/{apiId}": {
"integration-api/{teamId}/{apiId}": {
"get": {
"summary": "get API",
"operationId": "/integration-api.findapi",
"operationId": "integration-api.findapi",
"responses": {
"200": {
"description": "API",
Expand Down Expand Up @@ -9349,7 +9349,7 @@
}
],
"tags": [
"/integration-apis"
"integration-apis"
]
}
}
Expand Down
32 changes: 16 additions & 16 deletions daikoku/public/swaggers/admin-api-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5660,7 +5660,7 @@ paths:
/integration-api/apis:
get:
summary: get all public apis for integration
operationId: /integration-api.findallapis
operationId: integration-api.findallapis
responses:
'200':
description: List of public APIs
Expand Down Expand Up @@ -5689,11 +5689,11 @@ paths:
name: X-Personal-Token
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}:
get:
summary: get all teams for integration
operationId: /integration-api.findallateams
operationId: integration-api.findallateams
responses:
'200':
description: List of teams
Expand Down Expand Up @@ -5727,11 +5727,11 @@ paths:
name: teamId
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}/{apiId}/complete:
get:
summary: get complete API for integration
operationId: /integration-api.findcompleteapi
operationId: integration-api.findcompleteapi
responses:
'200':
description: Complete API
Expand Down Expand Up @@ -5768,11 +5768,11 @@ paths:
name: apiId
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}/{apiId}/description:
get:
summary: get API description
operationId: /integration-api.findapidescription
operationId: integration-api.findapidescription
responses:
'200':
description: API description
Expand Down Expand Up @@ -5809,11 +5809,11 @@ paths:
name: apiId
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}/{apiId}/plans:
get:
summary: get API plans
operationId: /integration-api.findapiplans
operationId: integration-api.findapiplans
responses:
'200':
description: API plans
Expand Down Expand Up @@ -5850,11 +5850,11 @@ paths:
name: apiId
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}/{apiId}/documentation:
get:
summary: get API documentation
operationId: /integration-api.findapidocumentation
operationId: integration-api.findapidocumentation
responses:
'200':
description: API documentation
Expand Down Expand Up @@ -5891,11 +5891,11 @@ paths:
name: apiId
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}/{apiId}/apidoc:
get:
summary: get API description
operationId: /integration-api.findapidoc
operationId: integration-api.findapidoc
responses:
'200':
description: API doc (swagger)
Expand Down Expand Up @@ -5932,11 +5932,11 @@ paths:
name: apiId
required: true
tags:
- /integration-apis
- integration-apis
/integration-api/{teamId}/{apiId}:
get:
summary: get API
operationId: /integration-api.findapi
operationId: integration-api.findapi
responses:
'200':
description: API
Expand Down Expand Up @@ -5973,4 +5973,4 @@ paths:
name: apiId
required: true
tags:
- /integration-apis
- integration-apis
Loading

0 comments on commit 07de0cf

Please sign in to comment.