public IActionResult GetScriptCompletion(string app, string schema) { var completer = new ScriptingCompletion(); var completion = completer.Asset(); return(Ok(completion)); }
public IActionResult GetScriptCompletion(string app, string schema) { var completer = new ScriptingCompletion(); var completion = completer.Content(Schema.SchemaDef, App.PartitionResolver()); return(Ok(completion)); }
public IActionResult GetScriptCompletion(string app, string schema) { var completer = new ScriptingCompletion(); var completion = completer.GetCompletion(Schema.SchemaDef, App.PartitionResolver()); var result = completion.Select(x => new { x.Name, x.Description }); return(Ok(result)); }
public async Task <IActionResult> GetScriptCompletiong(string app, string name) { var schema = await GetSchemaAsync(name); if (schema == null) { return(NotFound()); } var completer = new ScriptingCompletion(); var completion = completer.GetCompletion(schema.SchemaDef, App.PartitionResolver()); var result = completion.Select(x => new { x.Name, x.Description }); return(Ok(result)); }