Skip to content

feat(auth-manager): created package and added openapi#2

Merged
CptSchnitz merged 2 commits into
masterfrom
create-auth-manager
Mar 22, 2023
Merged

feat(auth-manager): created package and added openapi#2
CptSchnitz merged 2 commits into
masterfrom
create-auth-manager

Conversation

@CptSchnitz

Copy link
Copy Markdown
Contributor

created the auth-manager package - note that jest run as it used to be, and not for the entire monorepo
created openapi - i thought about removing the patch method for the versioned resources, and just having post act as upsert. WDYT? @syncush

@CptSchnitz CptSchnitz requested a review from syncush March 20, 2023 14:23
content:
application/json:
schema:
$ref: '#/components/schemas/connection'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createdAt is not required here, is it possible ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is readonly so it doesn't matter.

$ref: '#/components/responses/400BadRequest'
404:
$ref: '#/components/responses/404NotFound'
/client/{clientName}/connection:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be connections in plural ?

schema:
$ref: '#/components/schemas/connection'
responses:
201:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we return the connection?

schema:
$ref: '#/components/schemas/key'
responses:
201:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another 201 with no content, i really wonder if it should be 204 or 201

@CptSchnitz CptSchnitz merged commit edaac55 into master Mar 22, 2023
@CptSchnitz CptSchnitz deleted the create-auth-manager branch March 22, 2023 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants