File tree Expand file tree Collapse file tree 6 files changed +144
-1
lines changed Expand file tree Collapse file tree 6 files changed +144
-1
lines changed Original file line number Diff line number Diff line change 5031
5031
}
5032
5032
]
5033
5033
},
5034
+ {
5035
+ "name" : " Job (Serenity only)" ,
5036
+ "item" : [
5037
+ {
5038
+ "name" : " Launch export" ,
5039
+ "request" : {
5040
+ "method" : " POST" ,
5041
+ "header" : [
5042
+ {
5043
+ "key" : " Authorization" ,
5044
+ "value" : " Bearer {{token}}"
5045
+ },
5046
+ {
5047
+ "key" : " Content-type" ,
5048
+ "value" : " application/json"
5049
+ }
5050
+ ],
5051
+ "url" : {
5052
+ "raw" : " {{url}}/api/rest/v1/jobs/export/csv_product_export" ,
5053
+ "host" : [
5054
+ " {{url}}"
5055
+ ],
5056
+ "path" : [
5057
+ " api" ,
5058
+ " rest" ,
5059
+ " v1" ,
5060
+ " jobs" ,
5061
+ " export"
5062
+ ]
5063
+ }
5064
+ },
5065
+ "response" : []
5066
+ },
5067
+ {
5068
+ "name" : " Launch import" ,
5069
+ "request" : {
5070
+ "method" : " POST" ,
5071
+ "header" : [
5072
+ {
5073
+ "key" : " Authorization" ,
5074
+ "value" : " Bearer {{token}}"
5075
+ },
5076
+ {
5077
+ "key" : " Content-type" ,
5078
+ "value" : " application/json"
5079
+ }
5080
+ ],
5081
+ "body" : {
5082
+ "mode" : " raw" ,
5083
+ "raw" : " {\n \" import_mode\" : \" create_only\"\n }"
5084
+ },
5085
+ "url" : {
5086
+ "raw" : " {{url}}/api/rest/v1/jobs/import/csv_product_import" ,
5087
+ "host" : [
5088
+ " {{url}}"
5089
+ ],
5090
+ "path" : [
5091
+ " api" ,
5092
+ " rest" ,
5093
+ " v1" ,
5094
+ " jobs" ,
5095
+ " import"
5096
+ ]
5097
+ }
5098
+ },
5099
+ "response" : []
5100
+ }
5101
+ ]
5102
+ },
5034
5103
{
5035
5104
"name" : " Authentification by password" ,
5036
5105
"event" : [
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 37
37
/api/rest/v1/media-files/{code}/download :
38
38
$ref : ./resources/media_files/routes/media_files_code_download.yaml
39
39
40
+ /api/rest/v1/jobs/export/{code} :
41
+ $ref : ./resources/jobs/routes/export.yaml
42
+ /api/rest/v1/jobs/import/{code} :
43
+ $ref : ./resources/jobs/routes/import.yaml
44
+
40
45
/api/rest/v1/families :
41
46
$ref : ./resources/families/routes/families.yaml
42
47
/api/rest/v1/families/{code} :
Original file line number Diff line number Diff line change
1
+ post :
2
+ summary : Launch export job by code
3
+ operationId : " post_job_export"
4
+ tags :
5
+ - Jobs
6
+ x-versions :
7
+ - " SaaS"
8
+ description : This endpoint allows you to launch an export job by code.
9
+ parameters :
10
+ - name : code
11
+ in : path
12
+ type : string
13
+ description : Job code
14
+ required : true
15
+ responses :
16
+ 200 :
17
+ description : OK
18
+ x-details : Returns the execution ID for the launched job
19
+ x-examples-per-version :
20
+ - x-version : ' SaaS'
21
+ x-example : {"execution_id": "12345"}
22
+ 400 :
23
+ $ref : " #/responses/400Error"
24
+ 403 :
25
+ $ref : " #/responses/403Error"
26
+ 404 :
27
+ $ref : " #/responses/404Error"
28
+ 422 :
29
+ $ref : " #/responses/422Error"
Original file line number Diff line number Diff line change
1
+ post :
2
+ summary : Launch import job by code
3
+ operationId : " post_job_import"
4
+ tags :
5
+ - Jobs
6
+ x-versions :
7
+ - " SaaS"
8
+ description : This endpoint allows you to launch an import job by code.
9
+ x-body-by-line : " The body is optional and can be be empty. If empty, the import profile options will be used."
10
+ parameters :
11
+ - name : code
12
+ in : path
13
+ type : string
14
+ description : Job code
15
+ required : true
16
+ - name : body
17
+ in : body
18
+ schema :
19
+ properties :
20
+ import_mode :
21
+ type : string
22
+ description : " Change the import mode for this job by overriding the profile value.
23
+ Available values are: <em>create_only</em>, <em>update_only<em> and <em>create_or_update</em>"
24
+ responses :
25
+ 200 :
26
+ description : OK
27
+ x-details : Returns the execution ID for the launched job
28
+ x-examples-per-version :
29
+ - x-version : ' SaaS'
30
+ x-example : {"execution_id": "12345"}
31
+ 400 :
32
+ $ref : " #/responses/400Error"
33
+ 403 :
34
+ $ref : " #/responses/403Error"
35
+ 404 :
36
+ $ref : " #/responses/404Error"
37
+ 422 :
38
+ $ref : " #/responses/422Error"
Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ function determineCategory(tag){
82
82
return 'Catalogs for Apps' ;
83
83
case 'UI Extensions' :
84
84
return 'Extensions' ;
85
+ case 'Jobs' :
86
+ return 'Jobs' ;
85
87
default :
86
88
return 'Utilities' ;
87
89
}
You can’t perform that action at this time.
0 commit comments