Skip to content

Commit 1b2761d

Browse files
WUEHRabaplint[bot]
andauthored
[HTTP] Add new object type HTTP (#709)
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
1 parent 158e208 commit 1b2761d

File tree

4 files changed

+130
-0
lines changed

4 files changed

+130
-0
lines changed

file-formats/http/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# HTTP Service File Format
2+
3+
## Object Type Information
4+
5+
Object Type | Description | Group
6+
:--- | :--- | :---
7+
HTTP | HTTP Service | Connectivity
8+
9+
## File Structure
10+
11+
File | Cardinality | Definition | Schema | Example
12+
:--- | :--- | :--- | :--- | :---
13+
`<name>.http.json` | 1 | [`zif_aff_http_v1.intf.abap`](./type/zif_aff_http_v1.intf.abap) | [`http-v1.json`](./http-v1.json)

file-formats/http/http-v1.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/http/http-v1.json",
5+
"title": "HTTP Service",
6+
"description": "HTTP Service",
7+
"type": "object",
8+
"properties": {
9+
"formatVersion": {
10+
"title": "Format Version",
11+
"description": "Format version",
12+
"type": "string",
13+
"const": "1"
14+
},
15+
"header": {
16+
"title": "Header",
17+
"description": "Header",
18+
"type": "object",
19+
"properties": {
20+
"description": {
21+
"title": "Description",
22+
"description": "Description of the ABAP object",
23+
"type": "string",
24+
"maxLength": 60
25+
},
26+
"originalLanguage": {
27+
"title": "Original Language",
28+
"description": "Original language of the ABAP object",
29+
"type": "string",
30+
"minLength": 2
31+
},
32+
"abapLanguageVersion": {
33+
"title": "ABAP Language Version",
34+
"description": "ABAP language version",
35+
"type": "string",
36+
"enum": [
37+
"standard",
38+
"cloudDevelopment"
39+
],
40+
"enumTitles": [
41+
"Standard",
42+
"ABAP Cloud Development"
43+
],
44+
"enumDescriptions": [
45+
"Standard",
46+
"ABAP cloud development"
47+
],
48+
"default": "standard"
49+
}
50+
},
51+
"additionalProperties": false,
52+
"required": [
53+
"description",
54+
"originalLanguage"
55+
]
56+
},
57+
"generalInformation": {
58+
"title": "General Information",
59+
"description": "General information",
60+
"type": "object",
61+
"properties": {
62+
"handlerClass": {
63+
"title": "Handler Class",
64+
"description": "Handler class",
65+
"type": "string",
66+
"maxLength": 30
67+
}
68+
},
69+
"additionalProperties": false
70+
}
71+
},
72+
"additionalProperties": false,
73+
"required": [
74+
"formatVersion",
75+
"header",
76+
"generalInformation"
77+
]
78+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
INTERFACE zif_aff_http_v1
2+
PUBLIC.
3+
4+
TYPES:
5+
"! <p class="shorttext">General Information</p>
6+
"! General information
7+
"! $required
8+
BEGIN OF ty_general_information,
9+
"! <p class="shorttext">Handler Class</p>
10+
"! Handler class
11+
handler_class TYPE zif_aff_types_v1=>ty_object_name_30,
12+
END OF ty_general_information.
13+
14+
TYPES:
15+
"! <p class="shorttext">HTTP Service</p>
16+
"! HTTP Service
17+
BEGIN OF ty_main,
18+
"! <p class="shorttext">Format Version</p>
19+
"! Format version
20+
"! $required
21+
format_version TYPE zif_aff_types_v1=>ty_format_version,
22+
"! <p class="shorttext">Header</p>
23+
"! Header
24+
"! $required
25+
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
26+
"! <p class="shorttext">General Information</p>
27+
"! General information
28+
"! $required
29+
general_information TYPE ty_general_information,
30+
31+
END OF ty_main.
32+
ENDINTERFACE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"formatVersion": "1",
3+
"header": {
4+
"description": "ABAP File Format for HTTP Service",
5+
"originalLanguage": "en"
6+
}
7+
}

0 commit comments

Comments
 (0)