From 5d014c18608cd3a104f22841e118e457055ca34f Mon Sep 17 00:00:00 2001 From: mgonnav Date: Thu, 14 Dec 2023 13:54:06 -0500 Subject: [PATCH] Update swagger API spec --- estela-api/api/views/job_data.py | 1 - estela-api/docs/api.yaml | 19 +++++++------------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/estela-api/api/views/job_data.py b/estela-api/api/views/job_data.py index 40c32aea..b4681133 100644 --- a/estela-api/api/views/job_data.py +++ b/estela-api/api/views/job_data.py @@ -12,7 +12,6 @@ from api import errors from api.exceptions import DataBaseError from api.mixins import BaseViewSet -from api.serializers.job import DeleteJobDataSerializer from config.job_manager import spiderdata_db_client from core.models import SpiderJob from core.tasks import get_chain_to_process_usage_data diff --git a/estela-api/docs/api.yaml b/estela-api/docs/api.yaml index 387f5a5b..6742a560 100644 --- a/estela-api/docs/api.yaml +++ b/estela-api/docs/api.yaml @@ -1205,9 +1205,9 @@ paths: type: string responses: '200': - description: '' - schema: - $ref: '#/definitions/DeleteJobData' + description: Deletion successful + '404': + description: Could not delete data tags: - api parameters: @@ -2647,15 +2647,10 @@ definitions: title: Data expiry days description: Job data expiry days. type: integer - DeleteJobData: - required: - - count - type: object - properties: - count: - title: Count - description: Deleted items count. - type: integer + proxy_usage_data: + title: Proxy usage data + description: Proxy Usage data. + type: string UsageRecord: required: - processing_time