Skip to content

Commit

Permalink
Explicitly accept application/json.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Sep 16, 2023
1 parent aa4476b commit bbdf8f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 60 deletions.
1 change: 1 addition & 0 deletions LeaderboardBackend/Controllers/ApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace LeaderboardBackend.Controllers;

[ApiController]
[Consumes("application/json")]
[Produces("application/json")]
[Route("api/[controller]")]
public abstract class ApiController : ControllerBase { }
60 changes: 0 additions & 60 deletions LeaderboardBackend/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
"schema": {
"$ref": "#/components/schemas/RegisterRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/RegisterRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/RegisterRequest"
}
}
}
},
Expand Down Expand Up @@ -74,16 +64,6 @@
"schema": {
"$ref": "#/components/schemas/LoginRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/LoginRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/LoginRequest"
}
}
}
},
Expand Down Expand Up @@ -206,16 +186,6 @@
"schema": {
"$ref": "#/components/schemas/RecoverAccountRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/RecoverAccountRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/RecoverAccountRequest"
}
}
}
},
Expand Down Expand Up @@ -321,16 +291,6 @@
"schema": {
"$ref": "#/components/schemas/CreateCategoryRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CreateCategoryRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/CreateCategoryRequest"
}
}
}
},
Expand Down Expand Up @@ -549,16 +509,6 @@
"schema": {
"$ref": "#/components/schemas/CreateLeaderboardRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CreateLeaderboardRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/CreateLeaderboardRequest"
}
}
}
},
Expand Down Expand Up @@ -711,16 +661,6 @@
"schema": {
"$ref": "#/components/schemas/CreateRunRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/CreateRunRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/CreateRunRequest"
}
}
}
},
Expand Down

0 comments on commit bbdf8f7

Please sign in to comment.