Exemple #1
0
        /// <summary>
        /// Gets a schema by its name.
        /// </summary>
        /// <param name="schema"></param>
        /// <returns></returns>
        public ActionResponseSchema Get(string logicalSchemaPath)
        {
            var action = new ActionRequestSchema(_client.Token.SessionId)
            {
                Path = logicalSchemaPath
            };

            return(Submit <ActionRequestSchema, ActionResponseSchema>($"{_apiBase}/Get", action));
        }
Exemple #2
0
        /// <summary>
        /// Creates a single schema returns its name and id.
        /// </summary>
        /// <param name="schema"></param>
        /// <returns></returns>
        public async Task <ActionResponseSchema> CreateAsync(string logicalSchemaPath)
        {
            var action = new ActionRequestSchema(_client.Token.SessionId)
            {
                Path = logicalSchemaPath
            };

            return(await SubmitAsync <ActionRequestSchema, ActionResponseSchema>($"{_apiBase}/Create", action));
        }