public async Task <OpenApiDocument> PostAsync(string csdl = null) { var request = builder.ToHttpRequestMessage(); request.Method = HttpMethod.Post; if (csdl != null) { request.Content = new StringContent(csdl); } var response = await builder.SendAsync(request); return(await ResponseMachine.HandleOpenApiDocumentResponseAsync(response)); }
public async Task <OpenApiDocument> GetAsync() { var response = await builder.SendAsync(builder.ToHttpRequestMessage()); return(await ResponseMachine.HandleOpenApiDocumentResponseAsync(response)); }