-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathadd.yaml
More file actions
50 lines (50 loc) · 1.26 KB
/
add.yaml
File metadata and controls
50 lines (50 loc) · 1.26 KB
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
openapi: 3.0.0
info:
title: Add Service
description: API generated from Python function schema
version: 1.0.0
paths:
/add:
post:
summary: Add two integers
description: Add two integers.
operationId: add
x-sfdc:
code-extension:
feature: BYOC
language: python
namespace: salesforceOrg
package: dataCloudPkg
name: addFn
prototype: 'add(request: dict) -> dict'
requestSchema: 'dict(a: int, b: int)'
responseSchema: 'dict(result: int)'
description: Will perform add operation
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
a:
type: integer
b:
type: integer
required:
- a
- b
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
result:
type: integer
required:
- result
'400':
description: Invalid input