{ "openapi": "3.0.0", "info": { "version": "1.0.4", "title": "Aimmune API", "description": "This is a sample API for Aimmune for Trial Card form.", "x-jentic-source-url": "https://api.swaggerhub.com/apis/RAPP-APP-DEV-LA/AimmuneAPITrialCard/1.0.4/swagger.json", "contact": {} }, "servers": [ { "url": "https://io.palforzia.com/api" } ], "paths": { "/trialcard": { "post": { "summary": "for Trial Card", "description": "receives Trial Card submissions", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "caregiver_email" ], "properties": { "patient_full_name": { "type": "string", "maxLength": 1000 }, "patient_dob": { "type": "string", "description": "yyyy-mm-dd" }, "patient_gender": { "type": "string", "description": "eg. M or male, what is the syntax like" }, "patient_email": { "type": "string", "maxLength": 254 }, "patient_phone_number": { "type": "string" }, "address_1": { "type": "string" }, "address_2": { "type": "string" }, "caregiver_full_name": { "type": "string" }, "caregiver_relationship_to_patient": { "type": "string", "description": "what is the input field" }, "caregiver_phone_number": { "type": "string" }, "caregiver_email": { "type": "string", "maxLength": 254 }, "prescription_information": { "type": "string", "description": "what is the input field" }, "hcp_provider_name": { "type": "string" }, "hcp_provider_specialty": { "type": "string" }, "hcp_provider_practice_name": { "type": "string" }, "hcp_provider_address": { "type": "string" }, "hcp_provider_phone_number": { "type": "string" }, "hcp_provider_prescriber_tax_id": { "type": "string" }, "opt_in_marketing_communications": { "type": "string", "description": "Y or N" } } } } } }, "responses": { "200": { "description": "Successfully created", "content": { "application/json": { "schema": { "type": "object", "properties": { "patient_full_name": { "type": "string" }, "caregiver_email": { "type": "string" } } } } } }, "400": { "description": "Invalid request", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "description": "for example, missing required inputs" } } } } } }, "401": { "description": "Unauthorized. (This API will be IP restricted, not planning on authorization tokens at this time)." } }, "tags": [ "trialcard" ], "operationId": "post-trialcard" } } }, "components": {}, "tags": [ { "name": "trialcard" } ] }