mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-07 05:51:57 +00:00
Compare commits
2 commits
b9a384d1c9
...
df0e911c89
| Author | SHA1 | Date | |
|---|---|---|---|
| df0e911c89 | |||
| 26f6f48de8 |
6 changed files with 14 additions and 58 deletions
|
|
@ -1,5 +1,16 @@
|
|||
# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
||||
# See https://redocly.com/docs/cli/ for more information.
|
||||
#
|
||||
# Intentionally empty for AP-14 foundation. Add justified ignores in the same
|
||||
# style as Sea-Haven-Industries/procurement-ingest when needed.
|
||||
# Login and callback fail with a 302 redirect, or 500 when Cognito is not configured.
|
||||
packages/api/openapi/paths/auth-login.yaml:
|
||||
operation-4xx-response:
|
||||
- '#/get/responses'
|
||||
packages/api/openapi/paths/auth-callback.yaml:
|
||||
operation-4xx-response:
|
||||
- '#/get/responses'
|
||||
# Health returns 200. Ready returns 200 or 503. Neither returns 4xx.
|
||||
packages/api/openapi/paths/health.yaml:
|
||||
operation-4xx-response:
|
||||
- '#/get/responses'
|
||||
packages/api/openapi/paths/ready.yaml:
|
||||
operation-4xx-response:
|
||||
- '#/get/responses'
|
||||
|
|
|
|||
|
|
@ -30,14 +30,3 @@ get:
|
|||
responses:
|
||||
"302":
|
||||
description: Redirect to the SPA or the login error page.
|
||||
"400":
|
||||
description: Bad request.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yaml#/Error
|
||||
example:
|
||||
error:
|
||||
code: VALIDATION_ERROR
|
||||
message: Bad request.
|
||||
correlationId: 11111111-1111-4111-8111-111111111111
|
||||
|
|
|
|||
|
|
@ -17,17 +17,6 @@ get:
|
|||
responses:
|
||||
"302":
|
||||
description: Redirect to Cognito hosted UI.
|
||||
"400":
|
||||
description: Bad request.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yaml#/Error
|
||||
example:
|
||||
error:
|
||||
code: VALIDATION_ERROR
|
||||
message: Bad request.
|
||||
correlationId: 11111111-1111-4111-8111-111111111111
|
||||
"500":
|
||||
description: Cognito is not configured.
|
||||
content:
|
||||
|
|
|
|||
|
|
@ -19,14 +19,3 @@ post:
|
|||
code: FORBIDDEN
|
||||
message: Origin is not allowed.
|
||||
correlationId: 11111111-1111-4111-8111-111111111111
|
||||
"400":
|
||||
description: Bad request.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yaml#/Error
|
||||
example:
|
||||
error:
|
||||
code: VALIDATION_ERROR
|
||||
message: Bad request.
|
||||
correlationId: 11111111-1111-4111-8111-111111111111
|
||||
|
|
|
|||
|
|
@ -15,14 +15,3 @@ get:
|
|||
example:
|
||||
stage: local
|
||||
sha: deadbeef
|
||||
"400":
|
||||
description: Bad request.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yaml#/Error
|
||||
example:
|
||||
error:
|
||||
code: VALIDATION_ERROR
|
||||
message: Bad request.
|
||||
correlationId: 11111111-1111-4111-8111-111111111111
|
||||
|
|
|
|||
|
|
@ -15,17 +15,6 @@ get:
|
|||
example:
|
||||
status: ok
|
||||
database: up
|
||||
"400":
|
||||
description: Bad request.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yaml#/Error
|
||||
example:
|
||||
error:
|
||||
code: VALIDATION_ERROR
|
||||
message: Bad request.
|
||||
correlationId: 11111111-1111-4111-8111-111111111111
|
||||
"503":
|
||||
description: Database ping failed.
|
||||
content:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue