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()); } }
public async Task <IHttpActionResult> AddOrUpdateSwaggerDocumentAsync([FromBody] JObject swaggerDocumentJson) { var updatedSwaggerDocumentJson = await _swaggerDocumentManager.AddOrUpdateSwaggerDocumentAsync(swaggerDocumentJson); return(Ok(updatedSwaggerDocumentJson)); }