Merge branch 'develop' of https://github.com/Kareadita/Kavita into feature/comic-metadata-dl

This commit is contained in:
Joseph Milazzo 2025-04-20 12:23:55 -05:00
commit d78240cd03
26 changed files with 253 additions and 55 deletions

View file

@ -28,7 +28,7 @@ body:
label: Kavita Version Number - If you don't see your version number listed, please update Kavita and see if your issue still persists.
multiple: false
options:
- 0.8.5.11 - Stable
- 0.8.6.2 - Stable
- Nightly Testing Branch
validations:
required: true

View file

@ -13,7 +13,7 @@ name: "CodeQL"
on:
push:
branches: [ "develop", "main" ]
branches: [ "develop"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]

View file

@ -115,6 +115,7 @@
<None Remove="Hangfire-log.db" />
<None Remove="obj\**" />
<None Remove="cache\**" />
<None Remove="cache-long\**" />
<None Remove="backups\**" />
<None Remove="logs\**" />
<None Remove="temp\**" />

View file

@ -1,4 +1,6 @@
using System.Threading.Tasks;
using System.Linq;
using System.Threading.Tasks;
using API.Constants;
using API.Data;
using API.Data.Repositories;
using API.DTOs;
@ -54,4 +56,29 @@ public class VolumeController : BaseApiController
return Ok(false);
}
[Authorize(Policy = "RequireAdminRole")]
[HttpPost("multiple")]
public async Task<ActionResult<bool>> DeleteMultipleVolumes(int[] volumesIds)
{
var volumes = await _unitOfWork.VolumeRepository.GetVolumesById(volumesIds);
if (volumes.Count != volumesIds.Length)
{
return BadRequest(_localizationService.Translate(User.GetUserId(), "volume-doesnt-exist"));
}
_unitOfWork.VolumeRepository.Remove(volumes);
if (!await _unitOfWork.CommitAsync())
{
return Ok(false);
}
foreach (var volume in volumes)
{
await _eventHub.SendMessageAsync(MessageFactory.VolumeRemoved, MessageFactory.VolumeRemovedEvent(volume.Id, volume.SeriesId), false);
}
return Ok(true);
}
}

View file

@ -35,6 +35,7 @@ public interface IVolumeRepository
void Add(Volume volume);
void Update(Volume volume);
void Remove(Volume volume);
void Remove(IList<Volume> volumes);
Task<IList<MangaFile>> GetFilesForVolume(int volumeId);
Task<string?> GetVolumeCoverImageAsync(int volumeId);
Task<IList<int>> GetChapterIdsByVolumeIds(IReadOnlyList<int> volumeIds);
@ -43,6 +44,7 @@ public interface IVolumeRepository
Task<VolumeDto?> GetVolumeDtoAsync(int volumeId, int userId);
Task<IEnumerable<Volume>> GetVolumesForSeriesAsync(IList<int> seriesIds, bool includeChapters = false);
Task<IEnumerable<Volume>> GetVolumes(int seriesId);
Task<IList<Volume>> GetVolumesById(IList<int> volumeIds, VolumeIncludes includes = VolumeIncludes.None);
Task<Volume?> GetVolumeByIdAsync(int volumeId);
Task<IList<Volume>> GetAllWithCoversInDifferentEncoding(EncodeFormat encodeFormat);
Task<IEnumerable<string>> GetCoverImagesForLockedVolumesAsync();
@ -72,6 +74,10 @@ public class VolumeRepository : IVolumeRepository
{
_context.Volume.Remove(volume);
}
public void Remove(IList<Volume> volumes)
{
_context.Volume.RemoveRange(volumes);
}
/// <summary>
/// Returns a list of non-tracked files for a given volume.
@ -180,6 +186,15 @@ public class VolumeRepository : IVolumeRepository
.OrderBy(vol => vol.MinNumber)
.ToListAsync();
}
public async Task<IList<Volume>> GetVolumesById(IList<int> volumeIds, VolumeIncludes includes = VolumeIncludes.None)
{
return await _context.Volume
.Where(vol => volumeIds.Contains(vol.Id))
.Includes(includes)
.AsSplitQuery()
.OrderBy(vol => vol.MinNumber)
.ToListAsync();
}
/// <summary>
/// Returns a single volume with Chapter and Files

View file

@ -204,8 +204,8 @@
"person-image-doesnt-exist": "Osoba nie istnieje w CoversDB",
"email-taken": "Adres e-mail jest już używany",
"kavitaplus-restricted": "Jest to dostępne tylko dla Kavita+",
"smart-filter-name-required": "Strona internetowa",
"sidenav-stream-only-delete-smart-filter": "Jedynie filtry filtrowe mogą zostać usunięte z SideNav",
"dashboard-stream-only-delete-smart-filter": "Tylko inteligentne strumienie filtrów mogą zostać usunięte z rozdzielczości",
"smart-filter-name-required": "Inteligentny filtr wymaga nazwy",
"sidenav-stream-only-delete-smart-filter": "Tylko inteligentne filtry mogą zostać usunięte z panelu bocznego",
"dashboard-stream-only-delete-smart-filter": "Tylko inteligentne strumienie filtrów może zostać usunięte z głównego panelu",
"smart-filter-system-name": "Nie można użyć nazwy systemu dostarczanego strumieniem"
}

View file

@ -186,6 +186,7 @@ public class CacheService : ICacheService
}
else
{
// Potential BUG: If the folder is left here and there are no files within, this could theoretically return without proper cache
return chapter;
}
}

View file

@ -178,7 +178,6 @@ public class StatsService : IStatsService
var sw = Stopwatch.StartNew();
var response = await (Configuration.StatsApiUrl + "/api/health/")
.WithBasicHeaders(ApiKey)
.WithTimeout(TimeSpan.FromSeconds(30))
.GetAsync();
if (response.StatusCode == StatusCodes.Status200OK)
@ -197,7 +196,7 @@ public class StatsService : IStatsService
private async Task<int> MaxSeriesInAnyLibrary()
{
// If first time flow, just return 0
// If first time flow, return 0
if (!await _context.Series.AnyAsync()) return 0;
return await _context.Series
.Select(s => _context.Library.Where(l => l.Id == s.LibraryId).SelectMany(l => l.Series!).Count())

View file

@ -1,7 +1,7 @@
{
"TokenKey": "super secret unguessable key that is longer because we require it",
"Port": 5000,
"IpAddresses": "0.0.0.0,::",
"IpAddresses": "",
"BaseUrl": "/",
"Cache": 75,
"AllowIFraming": false

View file

@ -13,7 +13,7 @@ Setup guides, FAQ, the more information we have on the [wiki](https://wiki.kavit
- HTML/Javascript editor of choice (VS Code/Sublime Text/Webstorm/Atom/etc)
- [Git](https://git-scm.com/downloads)
- [NodeJS](https://nodejs.org/en/download/) (Node 18.13.X or higher)
- .NET 8.0+
- .NET 9.0+
- dotnet tool install -g Swashbuckle.AspNetCore.Cli
### Getting started ###

View file

@ -3,7 +3,7 @@
<TargetFramework>net9.0</TargetFramework>
<Company>kavitareader.com</Company>
<Product>Kavita</Product>
<AssemblyVersion>0.8.6.0</AssemblyVersion>
<AssemblyVersion>0.8.6.2</AssemblyVersion>
<NeutralLanguage>en</NeutralLanguage>
<TieredPGO>true</TieredPGO>
</PropertyGroup>

View file

@ -41,7 +41,7 @@ your reading collection with your friends and family!
## Demo
If you want to try out Kavita, a demo is available:
[https://demo.kavitareader.com/](https://demo.kavitareader.com/)
[https://demo.kavitareader.com/](https://demo.kavitareader.com/login?apiKey=9003cf99-9213-4206-a787-af2fe4cc5f1f)
```
Username: demouser
Password: Demouser64

View file

@ -472,8 +472,19 @@ export class ActionService {
});
}
async deleteMultipleVolumes(volumes: Array<Volume>, callback?: BooleanActionCallback) {
// TODO: Change translation key back to "toasts.confirm-delete-multiple-volumes"
if (!await this.confirmService.confirm(translate('toasts.confirm-delete-multiple-chapters', {count: volumes.length}))) return;
this.volumeService.deleteMultipleVolumes(volumes.map(v => v.id)).subscribe((success) => {
if (callback) {
callback(success);
}
})
}
async deleteMultipleChapters(seriesId: number, chapterIds: Array<Chapter>, callback?: BooleanActionCallback) {
if (!await this.confirmService.confirm(translate('toasts.confirm-delete-multiple-chapters'))) return;
if (!await this.confirmService.confirm(translate('toasts.confirm-delete-multiple-chapters', {count: chapterIds.length}))) return;
this.chapterService.deleteMultipleChapters(seriesId, chapterIds.map(c => c.id)).subscribe(() => {
if (callback) {

View file

@ -21,6 +21,10 @@ export class VolumeService {
return this.httpClient.delete<boolean>(this.baseUrl + 'volume?volumeId=' + volumeId);
}
deleteMultipleVolumes(volumeIds: number[]) {
return this.httpClient.post<boolean>(this.baseUrl + "volume/multiple", volumeIds)
}
updateVolume(volume: any) {
return this.httpClient.post(this.baseUrl + 'volume/update', volume, TextResonse);
}

View file

@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, inject, OnInit} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from '@angular/forms';
import {ToastrService} from 'ngx-toastr';
import {debounceTime, distinctUntilChanged, filter, switchMap, tap} from 'rxjs';
import {catchError, debounceTime, distinctUntilChanged, filter, of, switchMap, tap} from 'rxjs';
import {SettingsService} from '../settings.service';
import {ServerSettings} from '../_models/server-settings';
import {translate, TranslocoModule} from "@jsverse/transloco";
@ -46,15 +46,21 @@ export class ManageEmailSettingsComponent implements OnInit {
// Automatically save settings as we edit them
this.settingsForm.valueChanges.pipe(
debounceTime(300),
distinctUntilChanged(),
debounceTime(300),
filter(_ => this.settingsForm.valid),
takeUntilDestroyed(this.destroyRef),
switchMap(_ => {
const data = this.packData();
return this.settingsService.updateServerSettings(data);
return this.settingsService.updateServerSettings(data).pipe(catchError(err => {
console.error(err);
return of(null);
}));
}),
tap(settings => {
if (!settings) {
return;
}
this.serverSettings = settings;
this.cdRef.markForCheck();
})

View file

@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, inject, OnInit} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from '@angular/forms';
import {ToastrService} from 'ngx-toastr';
import {debounceTime, distinctUntilChanged, filter, switchMap, take, tap} from 'rxjs';
import {catchError, debounceTime, distinctUntilChanged, filter, of, switchMap, take, tap} from 'rxjs';
import {SettingsService} from '../settings.service';
import {ServerSettings} from '../_models/server-settings';
import {DirectoryPickerComponent, DirectoryPickerResult} from '../_modals/directory-picker/directory-picker.component';
@ -55,9 +55,15 @@ export class ManageMediaSettingsComponent implements OnInit {
takeUntilDestroyed(this.destroyRef),
switchMap(_ => {
const data = this.packData();
return this.settingsService.updateServerSettings(data);
return this.settingsService.updateServerSettings(data).pipe(catchError(err => {
console.error(err);
return of(null);
}));
}),
tap(settings => {
if (!settings) {
return;
}
const encodingChanged = this.serverSettings.encodeMediaAs !== settings.encodeMediaAs;
if (encodingChanged) {

View file

@ -64,7 +64,7 @@
@if (settingsForm.get('ipAddresses'); as formControl) {
<app-setting-item [title]="t('ip-address-label')" [subtitle]="t('ip-address-tooltip')">
<ng-template #view>
{{formControl.value}}
{{formControl.value | defaultValue}}
</ng-template>
<ng-template #edit>
<div class="input-group">
@ -75,7 +75,7 @@
@if(settingsForm.dirty || !settingsForm.untouched) {
<div id="ipaddresses-validations" class="invalid-feedback">
@if (formControl.errors?.pattern) {
@if (formControl.errors?.emptyOrPattern) {
<div>{{t('ip-address-validation')}}</div>
}
</div>

View file

@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, inject, OnInit} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from '@angular/forms';
import {FormControl, FormGroup, ReactiveFormsModule, ValidatorFn, Validators} from '@angular/forms';
import {ToastrService} from 'ngx-toastr';
import {take} from 'rxjs/operators';
import {ServerService} from 'src/app/_services/server.service';
@ -10,7 +10,7 @@ import {WikiLink} from "../../_models/wiki";
import {SettingItemComponent} from "../../settings/_components/setting-item/setting-item.component";
import {SettingSwitchComponent} from "../../settings/_components/setting-switch/setting-switch.component";
import {ConfirmService} from "../../shared/confirm.service";
import {debounceTime, distinctUntilChanged, filter, switchMap, tap} from "rxjs";
import {catchError, debounceTime, distinctUntilChanged, filter, of, switchMap, tap} from "rxjs";
import {takeUntilDestroyed} from "@angular/core/rxjs-interop";
import {DefaultValuePipe} from "../../_pipes/default-value.pipe";
import {EnterBlurDirective} from "../../_directives/enter-blur.directive";
@ -40,6 +40,7 @@ export class ManageSettingsComponent implements OnInit {
settingsForm: FormGroup = new FormGroup({});
taskFrequencies: Array<string> = [];
logLevels: Array<string> = [];
isDocker: boolean = false;
allowStatsTooltip = translate('manage-settings.allow-stats-tooltip-part-1') + ' <a href="' +
WikiLink.DataCollection +
@ -61,7 +62,7 @@ export class ManageSettingsComponent implements OnInit {
this.settingsForm.addControl('taskScan', new FormControl(this.serverSettings.taskScan, [Validators.required]));
this.settingsForm.addControl('taskBackup', new FormControl(this.serverSettings.taskBackup, [Validators.required]));
this.settingsForm.addControl('taskCleanup', new FormControl(this.serverSettings.taskCleanup, [Validators.required]));
this.settingsForm.addControl('ipAddresses', new FormControl(this.serverSettings.ipAddresses, [Validators.required, Validators.pattern(ValidIpAddress)]));
this.settingsForm.addControl('ipAddresses', new FormControl(this.serverSettings.ipAddresses, [this.emptyOrPattern(ValidIpAddress)]));
this.settingsForm.addControl('port', new FormControl(this.serverSettings.port, [Validators.required]));
this.settingsForm.addControl('loggingLevel', new FormControl(this.serverSettings.loggingLevel, [Validators.required]));
this.settingsForm.addControl('allowStatCollection', new FormControl(this.serverSettings.allowStatCollection, [Validators.required]));
@ -76,6 +77,7 @@ export class ManageSettingsComponent implements OnInit {
this.settingsForm.addControl('onDeckProgressDays', new FormControl(this.serverSettings.onDeckProgressDays, [Validators.required]));
this.settingsForm.addControl('onDeckUpdateDays', new FormControl(this.serverSettings.onDeckUpdateDays, [Validators.required]));
// Automatically save settings as we edit them
this.settingsForm.valueChanges.pipe(
distinctUntilChanged(),
@ -84,9 +86,16 @@ export class ManageSettingsComponent implements OnInit {
takeUntilDestroyed(this.destroyRef),
switchMap(_ => {
const data = this.packData();
return this.settingsService.updateServerSettings(data);
return this.settingsService.updateServerSettings(data).pipe(catchError(err => {
console.error(err);
return of(null);
}));
}),
tap(settings => {
if (!settings) {
return
}
this.serverSettings = settings;
this.resetForm();
this.cdRef.markForCheck();
@ -94,6 +103,7 @@ export class ManageSettingsComponent implements OnInit {
).subscribe();
this.serverService.getServerInfo().subscribe(info => {
this.isDocker = info.isDocker;
if (info.isDocker) {
this.settingsForm.get('ipAddresses')?.disable();
this.settingsForm.get('port')?.disable();
@ -130,12 +140,18 @@ export class ManageSettingsComponent implements OnInit {
}
packData() {
const modelSettings = this.settingsForm.value;
const modelSettings: ServerSettings = this.settingsForm.value;
modelSettings.bookmarksDirectory = this.serverSettings.bookmarksDirectory;
modelSettings.smtpConfig = this.serverSettings.smtpConfig;
modelSettings.installId = this.serverSettings.installId;
modelSettings.installVersion = this.serverSettings.installVersion;
// Disabled FormControls are not added to the value
if (this.isDocker) {
modelSettings.ipAddresses = this.serverSettings.ipAddresses;
modelSettings.port = this.serverSettings.port;
}
return modelSettings;
}
@ -171,4 +187,19 @@ export class ManageSettingsComponent implements OnInit {
console.error('error: ', err);
});
}
emptyOrPattern(pattern: RegExp): ValidatorFn {
return (control) => {
if (!control.value || control.value.length === 0) {
return null;
}
if (pattern.test(control.value)) {
return null;
}
return { 'emptyOrPattern': { 'requiredPattern': pattern.toString(), 'actualValue': control.value } };
}
}
}

View file

@ -4,7 +4,18 @@ import {ToastrService} from 'ngx-toastr';
import {SettingsService} from '../settings.service';
import {ServerSettings} from '../_models/server-settings';
import {shareReplay} from 'rxjs/operators';
import {debounceTime, defer, distinctUntilChanged, filter, forkJoin, Observable, of, switchMap, tap} from 'rxjs';
import {
catchError,
debounceTime,
defer,
distinctUntilChanged,
filter,
forkJoin,
Observable,
of,
switchMap,
tap
} from 'rxjs';
import {ServerService} from 'src/app/_services/server.service';
import {Job} from 'src/app/_models/job/job';
import {UpdateNotificationModalComponent} from 'src/app/announcements/_components/update-notification/update-notification-modal.component';
@ -173,9 +184,15 @@ export class ManageTasksSettingsComponent implements OnInit {
// }),
switchMap(_ => {
const data = this.packData();
return this.settingsService.updateServerSettings(data);
return this.settingsService.updateServerSettings(data).pipe(catchError(err => {
console.error(err);
return of(null);
}));
}),
tap(settings => {
if (!settings) {
return;
}
this.serverSettings = settings;
this.recurringTasks$ = this.serverService.getRecurringJobs().pipe(shareReplay());

View file

@ -53,23 +53,22 @@
</div>
@if (libraryType !== LibraryType.Images) {
@if ((libraryType === LibraryType.LightNovel || libraryType === LibraryType.Book)) {
@if (volume.name) {
<div class="card-body meta-title">
<span class="card-format"></span>
<div class="card-content d-flex justify-content-center align-items-center text-center" style="width:100%;min-height:58px;">
@if (libraryType === LibraryType.LightNovel || libraryType === LibraryType.Book) {
{{volume.name}}
} @else {
</div>
</div>
}
} @else if (volume.chapters[0].titleName) {
<div class="card-body meta-title">
<div class="card-content d-flex justify-content-center align-items-center text-center" style="width:100%;min-height:58px;">
{{volume.chapters[0].titleName}}
}
</div>
@if (actions && actions.length > 0) {
<span class="card-actions">
<app-card-actionables (actionHandler)="performAction($event)" [actions]="actions" [labelBy]="volume.name"></app-card-actionables>
</span>
}
</div>
}
}
<div class="card-title-container">
<span class="card-format">

View file

@ -82,7 +82,7 @@ export class DraggableOrderedListComponent {
get BufferAmount() {
return Math.min(this.items.length / 20, 20);
return Math.floor(Math.min(this.items.length / 20, 20));
}
constructor() {

View file

@ -115,6 +115,7 @@ import {CoverImageComponent} from "../../../_single-module/cover-image/cover-ima
import {DefaultModalOptions} from "../../../_models/default-modal-options";
import {LicenseService} from "../../../_services/license.service";
import {PageBookmark} from "../../../_models/readers/page-bookmark";
import {VolumeRemovedEvent} from "../../../_models/events/volume-removed-event";
enum TabID {
@ -353,11 +354,25 @@ export class SeriesDetailComponent implements OnInit, AfterContentChecked {
this.cdRef.markForCheck();
break;
case Action.Delete:
if (chapters.length > 0) {
await this.actionService.deleteMultipleChapters(seriesId, chapters, () => {
// No need to update the page as the backend will spam volume/chapter deletions
this.bulkSelectionService.deselectAll();
this.cdRef.markForCheck();
});
// It's not possible to select both chapters and volumes
break;
}
if (selectedVolumeIds.length > 0) {
await this.actionService.deleteMultipleVolumes(selectedVolumeIds, () => {
// No need to update the page as the backend will spam volume deletions
this.bulkSelectionService.deselectAll();
this.cdRef.markForCheck();
});
}
break;
}
}
@ -486,6 +501,11 @@ export class SeriesDetailComponent implements OnInit, AfterContentChecked {
const removedEvent = event.payload as ChapterRemovedEvent;
if (removedEvent.seriesId !== this.seriesId) return;
this.loadPageSource.next(false);
} else if (event.event === EVENTS.VolumeRemoved) {
const volumeRemoveEvent = event.payload as VolumeRemovedEvent;
if (volumeRemoveEvent.seriesId === this.seriesId) {
this.loadPageSource.next(false);
}
}
});

View file

@ -2640,6 +2640,7 @@
"alert-long-running": "This is a long running process. Please give it the time to complete before invoking again.",
"confirm-delete-multiple-series": "Are you sure you want to delete {{count}} series? It will not modify files on disk.",
"confirm-delete-multiple-chapters": "Are you sure you want to delete {{count}} chapter/volumes? It will not modify files on disk.",
"confirm-delete-multiple-volumes": "Are you sure you want to delete {{count}} volumes? It will not modify files on disk.",
"confirm-delete-series": "Are you sure you want to delete this series? It will not modify files on disk.",
"confirm-delete-chapter": "Are you sure you want to delete this chapter? It will not modify files on disk.",
"confirm-delete-volume": "Are you sure you want to delete this volume? It will not modify files on disk.",

View file

@ -10,7 +10,7 @@
"devices-tab": "{{tabs.devices-tab}}",
"smart-filters-tab": "{{tabs.smart-filters-tab}}",
"success-toast": "Käyttäjäasetukset päivitetty",
"global-settings-title": "Laajamittaiset asetukset",
"global-settings-title": "Yleisesti pätevät asetukset",
"page-layout-mode-label": "Sivun asettelutila",
"page-layout-mode-tooltip": "Näytä kohteet kortteina tai luettelonäkymänä Sarjojen yksityiskohdat -sivulla.",
"locale-label": "Kieliasetus",

View file

@ -2219,7 +2219,7 @@
"delete-device": "您确定要删除该设备吗?",
"confirm-regen-covers": "刷新封面将强制重新生成所有封面图片。这是一项繁重的运算。您确定执行,而不想使用扫描操作代替吗?",
"alert-long-running": "这是一个长时间运行的任务。请等待其完成后再次进行操作。",
"confirm-delete-multiple-series": "您确定要删除{{count}}个系列吗?这不会修改磁盘上的文件。",
"confirm-delete-multiple-series": "您确定要删除{{count}} 个系列吗?这不会修改磁盘上的文件。",
"confirm-delete-series": "您确定要删除此系列吗?这不会修改磁盘上的文件。",
"confirm-delete-chapter": "您确定要删除此章节吗?它不会修改磁盘上的文件。",
"confirm-delete-volume": "您确定要删除此卷吗?它不会修改磁盘上的文件。",

View file

@ -1,8 +1,8 @@
{
"openapi": "3.0.4",
"info": {
"title": "Kavita (v0.8.6.0)",
"description": "Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required. Built against v0.8.6.0",
"title": "Kavita (v0.8.6.1)",
"description": "Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required. Built against v0.8.6.1",
"license": {
"name": "GPL-3.0",
"url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE"
@ -14508,6 +14508,66 @@
}
}
},
"/api/Volume/multiple": {
"post": {
"tags": [
"Volume"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
}
},
"application/*+json": {
"schema": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "boolean"
}
},
"application/json": {
"schema": {
"type": "boolean"
}
},
"text/json": {
"schema": {
"type": "boolean"
}
}
}
}
}
}
},
"/api/want-to-read": {
"post": {
"tags": [