/// <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)); }
/// <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)); }