Browse Source

Theming fixed

pull/1/head
Sebastian 9 years ago
parent
commit
18de21cddb
  1. 4
      src/Squidex/Modules/Api/Apps/AppContributorsController.cs
  2. 14
      src/Squidex/Views/Docs/Docs.cshtml

4
src/Squidex/Modules/Api/Apps/AppContributorsController.cs

@ -62,7 +62,7 @@ namespace Squidex.Modules.Api.Apps
[HttpPost] [HttpPost]
[Route("apps/{app}/contributors/")] [Route("apps/{app}/contributors/")]
[SwaggerTags("Apps")] [SwaggerTags("Apps")]
[DescribedResponseType(400, typeof(ErrorDto), "User is already contributed to the app or user not found.")] [DescribedResponseType(400, typeof(ErrorDto), "User is already assigned to the app or not found.")]
public async Task<IActionResult> PostContributor(string app, [FromBody] AssignContributorDto model) public async Task<IActionResult> PostContributor(string app, [FromBody] AssignContributorDto model)
{ {
await CommandBus.PublishAsync(SimpleMapper.Map(model, new AssignContributor())); await CommandBus.PublishAsync(SimpleMapper.Map(model, new AssignContributor()));
@ -78,7 +78,7 @@ namespace Squidex.Modules.Api.Apps
[HttpDelete] [HttpDelete]
[Route("apps/{app}/contributors/{contributorId}/")] [Route("apps/{app}/contributors/{contributorId}/")]
[SwaggerTags("Apps")] [SwaggerTags("Apps")]
[DescribedResponseType(400, typeof(ErrorDto), "User is not a contributor of the app.")] [DescribedResponseType(400, typeof(ErrorDto), "User is not assigned to the app.")]
public async Task<IActionResult> DeleteContributor(string app, string contributorId) public async Task<IActionResult> DeleteContributor(string app, string contributorId)
{ {
await CommandBus.PublishAsync(new RemoveContributor { ContributorId = contributorId }); await CommandBus.PublishAsync(new RemoveContributor { ContributorId = contributorId });

14
src/Squidex/Views/Docs/Docs.cshtml

@ -4,6 +4,20 @@
<title>API Docs</title> <title>API Docs</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
padding: 0;
}
h1,
.menu-header,
.menu-cat-header:hover,
.menu-cat-header.active {
color: #3f83df !important;
}
</style>
</head> </head>
<body> <body>
<redoc spec-url="@Url.Content("~/swagger/v1/swagger.json")"></redoc> <redoc spec-url="@Url.Content("~/swagger/v1/swagger.json")"></redoc>

Loading…
Cancel
Save