public IActionResult GetScriptCompletion(string app, string schema)
        {
            var completer  = new ScriptingCompletion();
            var completion = completer.Asset();

            return(Ok(completion));
        }
Exemple #2
0
        public IActionResult GetScriptCompletion(string app, string schema)
        {
            var completer  = new ScriptingCompletion();
            var completion = completer.Content(Schema.SchemaDef, App.PartitionResolver());

            return(Ok(completion));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        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));
        }