-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspec_filedirectory.json
131 lines (131 loc) · 3.17 KB
/
spec_filedirectory.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"openapi": "3.1.0",
"x-stoplight": {
"id": "zo5hu0xpg2e6f"
},
"info": {
"title": "Saviynt File Directory API",
"version": "1.0",
"description": "File Directory APIs",
"contact": {
"name": "Saviynt Developers Team",
"email": "https://github.com/saviynt"
}
},
"servers": [
{
"url": "http://localhost:3000"
}
],
"tags": [
{
"name": "File Directory"
}
],
"paths": {
"/ECM/api/v5/uploadSchemaFile": {
"post": {
"summary": "Upload File",
"operationId": "uploadNewFile",
"tags": [
"File Directory"
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UploadSchemaFileResponse"
}
}
}
}
},
"description": "This API call can be used to upload the file in a specific location based on the property `job.ecm.imp.file.path` or `job.ecm.savfile.path` in `InternalConfig.groovy`.",
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/UploadSchemaFileRequest"
}
}
}
}
}
}
},
"components": {
"schemas": {
"UploadSchemaFileRequest": {
"title": "UploadSchemaFileRequest",
"x-stoplight": {
"id": "e4sccz84nbpq4"
},
"type": "object",
"properties": {
"file": {
"type": "string",
"format": "binary",
"x-stoplight": {
"id": "mjy4e4r2rzhrm"
},
"description": "the file to upload"
},
"pathLocation": {
"type": "string",
"x-stoplight": {
"id": "pqex6epn1nyb3"
},
"description": "Should be set to `Datafiles` to upload to `job.ecm.imp.file.path` in `InternalConfig.groovy`, or `SAV` to upload to `job.ecm.savfile.path` in `InternalConfig.groovy`. "
}
},
"required": [
"file",
"pathLocation"
],
"examples": [
{
"file": "string",
"pathLocation": "string"
}
]
},
"UploadSchemaFileResponse": {
"title": "UploadSchemaFileResponse",
"x-stoplight": {
"id": "jvrbda21bzmt8"
},
"type": "object",
"properties": {
"msg": {
"type": "string",
"x-stoplight": {
"id": "831ozp44vzt0c"
}
},
"errorCode": {
"type": "string",
"x-stoplight": {
"id": "05nyb4pfsu45i"
}
}
},
"required": [
"msg",
"errorCode"
],
"examples": [
{
"msg": "file Save Successfully",
"errorCode": "0"
},
{
"errorCode": "1",
"msg": "Unexpected error occurred"
}
]
}
}
}
}