From 52e46cd702abb59688513f231a17b05643bd7f48 Mon Sep 17 00:00:00 2001 From: Oliver Klemenz Date: Fri, 21 Feb 2025 18:37:45 +0100 Subject: [PATCH] OpenAPI --- openapi/SchedulingProviderService.openapi3.json | 3 ++- srv/scheduling/provider-service.cds | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openapi/SchedulingProviderService.openapi3.json b/openapi/SchedulingProviderService.openapi3.json index f8d5cb2..adbe072 100644 --- a/openapi/SchedulingProviderService.openapi3.json +++ b/openapi/SchedulingProviderService.openapi3.json @@ -5,7 +5,7 @@ "description": "The Scheduling Service Provider Interface of SAP Advanced Financial Closing allows the integration of third-party scheduling systems with SAP Advanced Financial Closing. It includes the retrieval of job definitions, as well as the scheduling and synchronization of jobs.", "version": "1.0.0" }, - "x-sap-shortText": "SAP Advanced Financial Closing Scheduling Service Provider Interface", + "x-sap-shortText": "Defines how an application can integrate with SAP Advanced Financial Closing scheduling service", "servers": [ { "url": "/api/job-scheduling/v1" @@ -1321,6 +1321,7 @@ "type": "oauth2", "flows": { "clientCredentials": { + "tokenUrl": "https://{subdomain}.authentication.{region}.hana.ondemand.com/oauth/token", "scopes": {} } } diff --git a/srv/scheduling/provider-service.cds b/srv/scheduling/provider-service.cds index c076345..57a9900 100644 --- a/srv/scheduling/provider-service.cds +++ b/srv/scheduling/provider-service.cds @@ -10,6 +10,7 @@ using scheduling from '../../db/scheduling'; Name : 'oauth2', Description: 'To access this API, use the OAuth 2.0 client credentials grant flow.', Scopes : [], + TokenUrl : 'https://{subdomain}.authentication.{region}.hana.ondemand.com/oauth/token' }], SecuritySchemes: [{Authorization: 'oauth2'}] } @@ -17,7 +18,7 @@ using scheduling from '../../db/scheduling'; @protocol : 'rest' @(path: '/api/job-scheduling/v1') @title : 'SAP Advanced Financial Closing Scheduling Service Provider Interface' -@Core.Description : 'SAP Advanced Financial Closing Scheduling Service Provider Interface' +@Core.Description : 'Defines how an application can integrate with SAP Advanced Financial Closing scheduling service' @Core.LongDescription: 'The Scheduling Service Provider Interface of SAP Advanced Financial Closing allows the integration of third-party scheduling systems with SAP Advanced Financial Closing. It includes the retrieval of job definitions, as well as the scheduling and synchronization of jobs.' @impl : '@cap-js-community/sap-afc-sdk/srv/scheduling/provider-service.js' service SchedulingProviderService {