Skip to content

Commit

Permalink
Merge pull request #743 from OpenSourceBrain/release/0.7.2
Browse files Browse the repository at this point in the history
Release/0.7.2
  • Loading branch information
filippomc authored May 23, 2023
2 parents 57f3489 + a8e0b98 commit d10c41d
Show file tree
Hide file tree
Showing 33 changed files with 749 additions and 572 deletions.
366 changes: 174 additions & 192 deletions applications/accounts-api/api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,199 +1,181 @@
---
openapi: 3.0.2
info:
title: accounts_api
version: 0.1.0
description: Accounts rest api
contact:
email: [email protected]
license:
name: UNLICENSED
title: accounts_api
version: 0.1.0
description: Accounts rest api
contact:
email: [email protected]
license:
name: UNLICENSED
servers:
- url: /api
-
url: /api
paths:
/live:
get:
tags:
- infrastructure
responses:
"200":
content:
application/json:
schema:
type: string
description: Healthy
"500":
description: Application is not healthy
operationId: live
summary: Test if application is healthy
/ready:
get:
tags:
- infrastructure
responses:
"200":
content:
application/json:
schema:
type: string
description: Ready
"500":
description: Application is not ready yet
operationId: ready
summary: Test if application is ready to take requests
/users:
get:
summary: Get list of users based on query
operationId: get_users
parameters:
- description: query filter
in: query
name: query_string
required: false
schema:
type: string
security:
- bearerAuth: []
responses:
"200":
content:
application/json:
schema:
type: object
properties:
users:
type: array
items:
$ref: '#/components/schemas/User'
description: Get list of users
tags:
- users
x-openapi-router-controller: accounts_api.controllers.users_controller
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
required: true
tags:
- users
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: The user as just saved
security:
- bearerAuth: []
operationId: createUser
/users/{userid}:
get:
tags:
- users
parameters:
- name: userid
description: user id
schema:
type: string
in: path
required: true
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: Get a user's public information
operationId: getUser
put:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
required: true
tags:
- users
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: The user as just saved
security:
- bearerAuth: []
operationId: updateUser
parameters:
- name: userid
description: user id
schema:
type: string
in: path
required: true
/live:
get:
tags:
- infrastructure
responses:
'200':
content:
application/json:
schema:
type: string
description: Healthy
'500':
description: Application is not healthy
operationId: live
summary: Test if application is healthy
/ready:
get:
tags:
- infrastructure
responses:
'200':
content:
application/json:
schema:
type: string
description: Ready
'500':
description: Application is not ready yet
operationId: ready
summary: Test if application is ready to take requests
/users:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
required: true
tags:
- users
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: The user as just saved
security:
-
bearerAuth: []
operationId: createUser
'/users/{userid}':
get:
tags:
- users
parameters:
-
name: userid
description: user id
schema:
type: string
in: path
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: Get a user's public information
operationId: getUser
put:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
required: true
tags:
- users
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: The user as just saved
security:
-
bearerAuth: []
operationId: updateUser
parameters:
-
name: userid
description: user id
schema:
type: string
in: path
required: true
components:
schemas:
Valid:
type: object
properties:
response:
type: string
Url:
description: ""
type: string
User:
description: Keycloak User
type: object
properties:
id:
description: user id
type: string
username:
description: Username of the keycloak user
type: string
email:
description: Email address of the keycloak user
type: string
firstName:
description: First Name of the keycloak user
type: string
lastName:
description: Last Name of the keycloak user
type: string
groups:
description: ""
type: array
items:
schemas:
Valid:
type: object
properties:
response:
type: string
Url:
description: ''
type: string
readOnly: true
profiles:
$ref: '#/components/schemas/Profiles'
description: "External links to user profiles (e.g. GitHub, Twitter, etc.)"
registrationDate:
format: date
description: ""
type: string
avatar:
$ref: '#/components/schemas/Url'
description: ""
website:
$ref: '#/components/schemas/Url'
description: ""
additionalProperties: true
Profiles:
description: ""
type: object
additionalProperties: true
securitySchemes:
bearerAuth:
scheme: bearer
bearerFormat: JWT
type: http
x-bearerInfoFunc: cloudharness.auth.decode_token
Profiles:
description: ''
type: object
additionalProperties: true
User:
description: Keycloak User
type: object
properties:
id:
description: user id
type: string
username:
description: Username of the keycloak user
type: string
email:
description: Email address of the keycloak user
type: string
firstName:
description: First Name of the keycloak user
type: string
lastName:
description: Last Name of the keycloak user
type: string
groups:
description: ''
type: array
items:
type: string
readOnly: true
profiles:
$ref: '#/components/schemas/Profiles'
description: 'External links to user profiles (e.g. GitHub, Twitter, etc.)'
registrationDate:
format: date
description: ''
type: string
avatar:
$ref: '#/components/schemas/Url'
description: ''
website:
$ref: '#/components/schemas/Url'
description: ''
quotas:
$ref: '#/components/schemas/Profiles'
description: ''
additionalProperties: true
securitySchemes:
bearerAuth:
scheme: bearer
bearerFormat: JWT
type: http
x-bearerInfoFunc: cloudharness.auth.decode_token
tags:
- name: infrastructure
description: ""
- name: users
description: ""
-
name: infrastructure
description: ''
-
name: users
description: ''
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
class Model(object):
# openapiTypes: The key is attribute name and the
# value is attribute type.
openapi_types = {}
openapi_types: typing.Dict[str, type] = {}

# attributeMap: The key is attribute name and the
# value is json key in definition.
attribute_map = {}
attribute_map: typing.Dict[str, str] = {}

@classmethod
def from_dict(cls: typing.Type[T], dikt) -> T:
Expand Down
Loading

0 comments on commit d10c41d

Please sign in to comment.