API contract hardening
This commit is contained in:
parent
57bc289fdc
commit
2c2bd4347a
6 changed files with 415 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ from repo_registry.web_api.schemas import (
|
|||
ContentChunkResponse,
|
||||
EvidenceCreate,
|
||||
EvidenceUpdate,
|
||||
ErrorResponse,
|
||||
FeatureCreate,
|
||||
FeatureUpdate,
|
||||
IdResponse,
|
||||
|
|
@ -116,6 +117,10 @@ app = FastAPI(
|
|||
version="0.1.0",
|
||||
description=API_DESCRIPTION,
|
||||
openapi_tags=OPENAPI_TAGS,
|
||||
responses={
|
||||
400: {"model": ErrorResponse, "description": "Bad request."},
|
||||
404: {"model": ErrorResponse, "description": "Resource not found."},
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue