diff --git a/file-formats/http/README.md b/file-formats/http/README.md new file mode 100644 index 000000000..7c4a69063 --- /dev/null +++ b/file-formats/http/README.md @@ -0,0 +1,13 @@ +# HTTP Service File Format + +## Object Type Information + +Object Type | Description | Group +:--- | :--- | :--- +HTTP | HTTP Service | Connectivity + +## File Structure + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.http.json` | 1 | [`zif_aff_http_v1.intf.abap`](./type/zif_aff_http_v1.intf.abap) | [`http-v1.json`](./http-v1.json) diff --git a/file-formats/http/http-v1.json b/file-formats/http/http-v1.json new file mode 100644 index 000000000..627715599 --- /dev/null +++ b/file-formats/http/http-v1.json @@ -0,0 +1,78 @@ +{ + "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/http/http-v1.json", + "title": "HTTP Service", + "description": "HTTP Service", + "type": "object", + "properties": { + "formatVersion": { + "title": "Format Version", + "description": "Format version", + "type": "string", + "const": "1" + }, + "header": { + "title": "Header", + "description": "Header", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description of the ABAP object", + "type": "string", + "maxLength": 60 + }, + "originalLanguage": { + "title": "Original Language", + "description": "Original language of the ABAP object", + "type": "string", + "minLength": 2 + }, + "abapLanguageVersion": { + "title": "ABAP Language Version", + "description": "ABAP language version", + "type": "string", + "enum": [ + "standard", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + }, + "generalInformation": { + "title": "General Information", + "description": "General information", + "type": "object", + "properties": { + "handlerClass": { + "title": "Handler Class", + "description": "Handler class", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "generalInformation" + ] +} diff --git a/file-formats/http/type/zif_aff_http_v1.intf.abap b/file-formats/http/type/zif_aff_http_v1.intf.abap new file mode 100644 index 000000000..8cb02e25e --- /dev/null +++ b/file-formats/http/type/zif_aff_http_v1.intf.abap @@ -0,0 +1,32 @@ +INTERFACE zif_aff_http_v1 + PUBLIC. + + TYPES: + "!

General Information

+ "! General information + "! $required + BEGIN OF ty_general_information, + "!

Handler Class

+ "! Handler class + handler_class TYPE zif_aff_types_v1=>ty_object_name_30, + END OF ty_general_information. + + TYPES: + "!

HTTP Service

+ "! HTTP Service + BEGIN OF ty_main, + "!

Format Version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60_cloud, + "!

General Information

+ "! General information + "! $required + general_information TYPE ty_general_information, + + END OF ty_main. +ENDINTERFACE. diff --git a/file-formats/http/type/zif_aff_http_v1.intf.json b/file-formats/http/type/zif_aff_http_v1.intf.json new file mode 100644 index 000000000..16984c4be --- /dev/null +++ b/file-formats/http/type/zif_aff_http_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "ABAP File Format for HTTP Service", + "originalLanguage": "en" + } +}