name: api_endpoint
description: Generates Comms and AppDataManager logic for a new endpoint.

version: 0.1.0+1

environment:
  mason: ^0.1.1


vars:
  path_url:
    type: string
    prompt: "🌐 What is the API path? (e.g., auth/login)"
  function_name:
    type: string
    prompt: "🖋️ What is the function name? (e.g., signIn)"
  request_type:
    type: string
    default: get
    prompt: "🔃 Is this a 'get' or a 'post'?"
  request_body:
    type: string
    default: ""
    prompt: "📦 Request Body type? (Mandatory for POST, Optional for GET)"

