fix(schema):playlist remove missing index parameter

environments/review-docs-2451-599pin/deployments/21384
Petitminion 2025-08-14 12:40:34 +02:00 zatwierdzone przez petitminion
rodzic d085d99dfe
commit a3705e3ce6
3 zmienionych plików z 25 dodań i 2 usunięć

Wyświetl plik

@ -7270,6 +7270,10 @@ paths:
enum:
- json
- xspf
- in: query
name: index
schema:
type: integer
- in: path
name: uuid
schema:
@ -7316,6 +7320,10 @@ paths:
enum:
- json
- xspf
- in: query
name: index
schema:
type: integer
- in: path
name: uuid
schema:
@ -16815,6 +16823,10 @@ paths:
enum:
- json
- xspf
- in: query
name: index
schema:
type: integer
- in: path
name: uuid
schema:
@ -16861,6 +16873,10 @@ paths:
enum:
- json
- xspf
- in: query
name: index
schema:
type: integer
- in: path
name: uuid
schema:

Wyświetl plik

@ -4,7 +4,7 @@ from itertools import chain
from django.conf import settings
from django.db import transaction
from django.db.models import Count
from drf_spectacular.utils import extend_schema
from drf_spectacular.utils import OpenApiParameter, OpenApiTypes, extend_schema
from rest_framework import exceptions, mixins, status, viewsets
from rest_framework.decorators import action
from rest_framework.pagination import PageNumberPagination
@ -205,7 +205,10 @@ class PlaylistViewSet(
),
)
@extend_schema(operation_id="remove_from_playlist")
@extend_schema(
operation_id="remove_from_playlist",
parameters=[OpenApiParameter("index", OpenApiTypes.INT, location="query")],
)
@action(methods=["post", "delete"], detail=True)
@transaction.atomic
def remove(self, request, *args, **kwargs):

Wyświetl plik

@ -14405,6 +14405,7 @@ export interface operations {
parameters: {
query?: {
format?: "json" | "xspf";
index?: number;
};
header?: never;
path: {
@ -14436,6 +14437,7 @@ export interface operations {
parameters: {
query?: {
format?: "json" | "xspf";
index?: number;
};
header?: never;
path: {
@ -21406,6 +21408,7 @@ export interface operations {
parameters: {
query?: {
format?: "json" | "xspf";
index?: number;
};
header?: never;
path: {
@ -21437,6 +21440,7 @@ export interface operations {
parameters: {
query?: {
format?: "json" | "xspf";
index?: number;
};
header?: never;
path: {