Exemplo n.º 1
0
        public ExportArtifact ExportPartials(string projectId, List <string> uris)
        {
            CheckAuthentication();
            var url = Url.Combine(Config.Url, Constants.MD_URI, projectId, Constants.PROJECT_PARTIAL_EXPORT_URI);

            var payload = new PartialExportRequest
            {
                PartialMDExport = new PartialMDExport
                {
                    Uris = uris
                }
            };
            var response       = PostRequest(url, payload);
            var exportResponse = JsonConvert.DeserializeObject(response, typeof(PartialExportResponse)) as PartialExportResponse;

            return(exportResponse.PartialMDArtifact);
        }
Exemplo n.º 2
0
        public ExportArtifact ExportPartials(string projectId, List<string> uris)
        {
            CheckAuthentication();
            var url = Url.Combine(Config.ServiceUrl, Constants.MD_URI, projectId, Constants.PROJECT_PARTIAL_EXPORT_URI);

            var payload = new PartialExportRequest {
                PartialMDExport = new PartialMDExport {
                    Uris = uris
                }
            };
            var response = JsonPostRequest(url, payload);
            var exportResponse = JsonConvert.DeserializeObject(response, typeof(PartialExportResponse)) as PartialExportResponse;
            return exportResponse.PartialMDArtifact;
        }