Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: P4ADEV-1851 add P4PA-SEND openAPI #31

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

antocalo
Copy link
Collaborator

List of Changes

Motivation and Context

Screenshots (example: rendering of a Mermaid diagram):

Types of changes

  • Mermaid Diagram
  • Readme / Markdown
  • Swagger doc

Impacted Internal Process:

  • RFC (title)
  • Design Review (title)

paths:
/notification:
post:
security: []
Copy link
Contributor

Choose a reason for hiding this comment

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

why without security?
All APIs should expect to be under security (copy it from the openApi you can find on the repo)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's an error, i'll fix it

description: Notification not found
'500':
description: Internal server error
post:
Copy link
Contributor

Choose a reason for hiding this comment

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

a POST on the entity path could be ambiguous, what do you think about to explicit configure the start operation?
/notification/{sendIdNotification}/start

Comment on lines 77 to 92
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CreateNotificationRequest'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CreateNotificationResponse'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why a request body?
The request response could be just the workflowId instead

description: Wrong notification status
'500':
description: Internal server error
/send/preload/{sendIdNotification}:
Copy link
Contributor

Choose a reason for hiding this comment

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

it's more meaningfull to configure the path to locate the entity as first and the configure the operation made on the entity (also for the other entities)

/send/{sendIdNotification}/preload

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