using BotSharp.Core.Adapters.Dialogflow; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Text; namespace Platform.Dialogflow.Controllers { #if DIALOGFLOW /// /// The /intents endpoint is used to create, retrieve, update, and delete intent objects. /// [Authorize] [Route("v1/[controller]")] public class IntentsController : ControllerBase { /// /// Retrieves a list of all intents for the agent. /// /// [HttpGet] public IEnumerable GetIntents() { return new List(); } /// /// The POST request creates a new intent. When a new intent is created via the API, the agent is trained with the new data. /// /// [HttpPost] public string PostIntent([FromBody] DialogflowIntent intent) { return ""; } /// /// Retrieves the specified intent. {id} is the ID of the intent to retrieve. /// /// [HttpGet("{id}")] public DialogflowIntent GetIntent() { return new DialogflowIntent(); } [HttpPut("{id}")] public bool PutIntent([FromBody] DialogflowIntent intent) { return true; } } #endif }