Skip to content

Instantly share code, notes, and snippets.

@eug-L
Last active October 15, 2024 09:14
Show Gist options
  • Save eug-L/7aff2b72e5a4712103e42f871825667c to your computer and use it in GitHub Desktop.
Save eug-L/7aff2b72e5a4712103e42f871825667c to your computer and use it in GitHub Desktop.
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/AKfycbz4nZmFYaNIE1We9IWuZz2b9rfrHNWWEAvzfs_mqqtk7feWtVXfoVKqCWxIF0MzPb7J
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:
- 'Gender'
properties:
'Gender':
type: string
description: Customer's gender
enum:
- 'Male'
- 'Female'
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