-
-
Notifications
You must be signed in to change notification settings - Fork 109
operation openapi property support #430
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
Open
PawelSuwinski
wants to merge
9
commits into
api-platform:main
Choose a base branch
from
PawelSuwinski:openapi-attr-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ea27046
operation openapi attribute support
PawelSuwinski f46e2ee
Merge branch 'main' into openapi-attr-support
PawelSuwinski c451ff4
fix
PawelSuwinski 6ff0783
arrow func return typing
PawelSuwinski 3e69994
arrow func return typing
PawelSuwinski 1736be2
arrow func return typing
PawelSuwinski 336fab7
styling
PawelSuwinski 79524b5
anon func return typing
PawelSuwinski fa0bfaf
no declarative code refacto
PawelSuwinski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
types: | ||
Saml: | ||
operations: | ||
login: | ||
class: Get | ||
name: "login" | ||
uriTemplate: "/saml/{id}/login" | ||
controller: "App\\Controller\\SamlController::login" | ||
openapi: | ||
tags: ["Auth"] | ||
summary: "SAML authentication." | ||
description: "SAML authentication." | ||
responses: | ||
302: | ||
description: "Initialization successful." | ||
headers: | ||
Location: | ||
required: true | ||
description: "SAML login page redirection." | ||
schema: | ||
type: "string" | ||
format: "url" | ||
403: { description: "SAML disabled." } | ||
404: { description: "SAML not found." } | ||
acs: | ||
class: Post | ||
name: "acs" | ||
uriTemplate: "/saml/{id}/acs" | ||
controller: "App\\Controller\\SamlController::acs" | ||
inputFormats: | ||
urlencoded: ['application/x-www-form-urlencoded'] | ||
openapi: | ||
tags: ["Auth"] | ||
summary: "SAML ACS." | ||
description: "SAML ACS." | ||
responses: | ||
302: | ||
description: "Authentication successful." | ||
headers: | ||
Location: | ||
required: true | ||
description: "Redirection page." | ||
schema: | ||
type: "string" | ||
format: "url" | ||
401: { description: "Authentication failed."} | ||
403: { description: "SAML disabled." } | ||
404: { description: "SAML not found." } | ||
requestBody: | ||
required: true | ||
content: | ||
"application/x-www-form-urlencoded": | ||
schema: | ||
type: object | ||
properties: | ||
SAMLResponse: | ||
type: string | ||
description: "SAML login response." | ||
required: ["SAMLResponse"] | ||
logout: | ||
class: Get | ||
name: "logout" | ||
uriTemplate: "/saml/{id}/logout" | ||
controller: "App\\Controller\\SamlController::logout" | ||
openapi: | ||
tags: ["Auth"] | ||
summary: "SAML logout." | ||
description: "SAML logout." | ||
parameters: | ||
- name: "SAMLRequest" | ||
in: "query" | ||
schema: { type: "string" } | ||
required: true | ||
description: "SAML logout request." | ||
- name: "RelayState" | ||
in: "query" | ||
schema: { type: "string" } | ||
required: false | ||
description: "SAML logout response redirect URL." | ||
- name: "Signature" | ||
in: "query" | ||
schema: { type: "string" } | ||
required: false | ||
description: "SAML signature." | ||
responses: | ||
302: | ||
description: "Logout successful." | ||
headers: | ||
Location: | ||
required: true | ||
description: "SAML logout response redirect URL." | ||
schema: | ||
type: "string" | ||
format: "url" | ||
|
||
403: { description: "Logout failed." } | ||
404: { description: "SAML not found." } | ||
attributes: | ||
ApiResource: | ||
shortName: "Saml" | ||
properties: | ||
name: | ||
nullable: false | ||
attributes: | ||
ApiProperty: | ||
iris: [ "https://schema.org/name" ] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.