コード例 #1
0
        public async Task <IHttpActionResult> AddOrUpdateSwaggerDocumentAsync([FromBody] JObject swaggerDocumentJson)
        {
            try
            {
                var updatedSwaggerDocumentJson = await _swaggerDocumentManager.AddOrUpdateSwaggerDocumentAsync(swaggerDocumentJson);

                return(Ok(updatedSwaggerDocumentJson));
            }
            catch (Exception ex)
            {
                _traceWriter.Error(Resources.SwaggerFileUpdateError, ex);
                return(InternalServerError());
            }
        }
コード例 #2
0
        public async Task <IHttpActionResult> AddOrUpdateSwaggerDocumentAsync([FromBody] JObject swaggerDocumentJson)
        {
            var updatedSwaggerDocumentJson = await _swaggerDocumentManager.AddOrUpdateSwaggerDocumentAsync(swaggerDocumentJson);

            return(Ok(updatedSwaggerDocumentJson));
        }