Created new action to set redirects for a domain

This commit is contained in:
Alejandro Celaya
2021-07-30 18:53:57 +02:00
committed by Alejandro Celaya
parent 5a1a4f5594
commit 6a40bbdcb5
7 changed files with 151 additions and 1 deletions

View File

@@ -66,6 +66,39 @@
}
}
},
"400": {
"description": "Provided data is invalid.",
"content": {
"application/problem+json": {
"schema": {
"type": "object",
"allOf": [
{
"$ref": "../definitions/Error.json"
},
{
"type": "object",
"required": ["invalidElements"],
"properties": {
"invalidElements": {
"type": "array",
"items": {
"type": "string",
"enum": [
"domain",
"baseUrlRedirect",
"regular404Redirect",
"invalidShortUrlRedirect"
]
}
}
}
}
]
}
}
}
},
"500": {
"description": "Unexpected error.",
"content": {