Last active
September 17, 2024 06:23
-
-
Save eug-L/d2f7d96f24c06497a5af4ff8fc629505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: "3.0.0" | |
info: | |
version: 1.0.0 | |
title: Google Form Submit API | |
description: > | |
This API submits a Google Form with customer information | |
license: | |
name: MIT | |
servers: | |
- url: https://script.google.com/macros/s/AKfycbyjzyeH69dFhvcLhqPX95mBO7C5tEHYmOQTTxDOLUGycIfEcCUPG3rzLIOk5HB6tdGFOQ | |
paths: | |
/exec: | |
post: | |
summary: Submit a Google Form collecting customer's information | |
operationId: submitForm | |
requestBody: | |
description: Fields to be submitted with the form | |
required: true | |
content: | |
application/json: | |
schema: | |
type: object | |
required: | |
- 'Full Name' | |
- 'Email' | |
properties: | |
'Full Name': | |
type: string | |
description: Customer's full name | |
'Email': | |
type: string | |
description: Customer's email | |
'Gender': | |
type: string | |
description: Customer's gender | |
'Type of Customer': | |
type: string | |
description: New or existing customer | |
enum: | |
- 'New' | |
- 'Existing' | |
'Address': | |
type: string | |
description: Customer's address | |
'Email Preferences': | |
type: array | |
items: | |
type: string | |
enum: | |
- 'Deals and Promotions' | |
- 'Announcements' | |
description: Customer's email preferences | |
'Birthday': | |
type: string | |
format: date | |
description: Customer's birthday | |
'Preferred Delivery Time': | |
type: string | |
format: date-time | |
description: Customer's preferred delivery time | |
responses: | |
'200': | |
description: Form submitted successfully | |
content: | |
application/json: | |
schema: | |
type: object | |
properties : | |
submitted: | |
type: boolean | |
description: Form submitted status | |
timestamp: | |
type: string | |
format: date-time | |
description: Form submitted time | |
id: | |
type: string | |
description: ID of the submitted response | |
error: | |
type: string | |
description: Form submission error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment