Swagger Error Response

The final result for the API explorer. The success response is similar to Lambda-Proxy, but you don’t have to specify the status code and the headers. In the early 1800s, the American railroad was a free-for-all. Swashbuckle is a handy library to easily bring Swagger support to your ASP. So, if you are developing an Azure-based REST service, Swagger is here to help you speed the development and testing process. module swagger-mongodb function swagger-mongodb. Another blog post in what seems to be becoming a series of posts on Swagger. Failed to parse MySQ INSTALL PARSE FAILED Failed to connect to failed to Failed-to swagger Failed To Allocate m Failed to create the Reason 442 Failed to PRKN-1019 Failed to Parse parse Parse swagger swagger swagger swagger swagger Swagger response JavaScript. A success response with code 200 will be assumed if nothing is explicitly defined. Thanks Nazila :) However i have one query, Let say we have 2 appnode AN100 and AN200 and we have change doc port 7777 and 7888 respectvely. If our 2 rest application are running in one appnode AN200, i mean each appinstance of 2 rest applications are running in same appnode then i belief in appnode config. Nebula API. Switch to the new look >> You can return to the original look by selecting English in the language selector above. As long as their controller is caught by the glob that you provide, the controller will be added to the swagger documentation and to the auto-generated routes. These examples are extracted from open source projects. This provides a UI to easily understand service contract and consumer can interact with service without any detailed knowledge of underlying logic. ActivityID (Guid) for Tracing. One common use for Swagger is documentation. You can use the @api. A response is defined by its HTTP status code and the data returned in the response body and/or headers. shweta agarwal Anil Sagar @ Google. IBM uses Swagger for the API documentation of several products and services internally. The response body for a post or a get is as shown in the image (the one in the image is specifically for a post that I made). NET Web API Documentation using Swagger. OpenTrials API. Filtering Response. The final result for the API explorer. Swagger is a specification and complete framework implementation for describing, producing, consuming, and visualizing RESTful web services. But as the example shows the three other tests that involve a response schema with `allOf` pass too. The browser returns results as expected. edmx) and Scaffold API Controller Integrating Swashbuckle/Swagger UI framework to represent API operations Creating an Asp. For search queries the response contains an additional field totalHits, which is the total number of items which match the search criteria. io or on irc. The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. For most features, namely method summaries and the descriptions of parameters and response codes, the use of an XML file is mandatory. We will learn how to expose automated swagger documentation from your REST API. So swagger is api documentation tool. Swagger with Dropwizard In this post I will discuss how to integrate swagger in to dropwizard project. Here we will learn what are all the annotations needed to customize the swagger documentation and create a Docket Bean in our Spring Configuration class. Also, in the Chrome network tab, I can see the response code as 400 (which is correct). Fortunately, this is where Swagger Codegen comes into the picture as it's specifically doing code generation from a contract. This will be present in. json) on which to serve the Swagger schema JSON; All the callbacks above receive a single parameter representing the Exception that was raised, or in the case of swagger_op_not_found_handler the Route that was not found. The following java examples will help you to understand the usage of io. A swagger:route can specify a response name for a status code and then the matching response will be used for that operation in the swagger definition. In order to utilize this service, please contact us for assistance. How to download a file in Swagger UI instead of displaying blob of text. The service is not configuration right. yaml reference 5 Operation IDs. Swagger SDK Powered by GitBook The ColdBox SwaggerSDK is a dependency of the Relax module and is available to allow you to provided consumers of your API with information on paths, methods, expectations and available parameters. Learn more about JWT here. The preferred way to install this extension is through composer. OpenAPI/Swagger (v2. Over the past few years, Swagger 2 has become the de facto standard for defining or documenting your API. Swagger Codegen + Ganesha. Since I published the original version of the soapui-swagger-plugin in late 2012, Swagger has continued to gain traction within the API community. Swagger is an auto-magically generated API documenting tool. edmx) and Scaffold API Controller Integrating Swashbuckle/Swagger UI framework to represent API operations Creating an Asp. Swagger UI doesn't support authenticated connections well. yml -l nodejs-server -o SwaggerServer" > server_build. Why is there "no response from server" in Swagger UI Stackoverflow. Adding Examples. A swagger:route can specify a response name for a status code and then the matching response will be used for that operation in the swagger definition. A response is defined by its HTTP status code and the data returned in the response body and/or headers. Of course locally everything works fine. For most features, namely method summaries and the descriptions of parameters and response codes, the use of an XML file is mandatory. For example, 200 isn't just an arbitrary code decided upon by the OpenWeatherMap API developers. Springfox supports both Swagger 1. This will be present in. @EnableSwagger2 — This will enable the swagger configuration during application startup. The swagger response object can only manage mutable variables, otherwise you'll need to make assignments and that would overwrite the swagger response object. Generating Swagger example responses with Swashbuckle April 21, 2015 May 25, 2017 mattfrear Code asp. annotations. Swagger 2 also allows overriding the default response messages of HTTP methods. Swagger – The World's Most Popular Framework for APIs. I guess it was the "examples" object that swagger2api was not able to accept. It enables the service provider to publish any changes in the REST API specifications thus making these updates visible to the clients consuming these APIs in real time. Docket — It is a builder which acts as a primary interface in swagger. Django tenant unit test return 403 instead of 200. If you want this behavior, I suggest putting a load balancer or reverse proxy in front of your server that is capable of sending back HTTP 500 responses when your API server is unavailable. swagger-php will scan your project and merge all annotations into one @OA\OpenApi annotation. from __future__ import print_statement import time import swagger_client from swagger_client. Hi Mayank Gandhi, Thanks for the response, i have converted the sample JSON to JSON schema and to YAML, i believe its needed to convert this YAML file to swagger definition file so that i can create data source to use the sample json , any insights post conversion of json to YAML and how to make swagger from YAML would be great. Please if ,you can send the testcase with the soapui, you will check the proxy configuration. When generating swagger output, we are getting a json parse error. With statistics and metrics exposed by swagger-stats you may spot problematic API endpoints, see where most of errors happens, catch long-running requests, analyze details of last errors, observe trends, setup alerting. So in this short post I decided to add documentation using Swagger for a simple ASP. swagger,swagger-ui I have an API call whose response includes a status field with a large number of potential status codes. Handles data services for DRE UI. get /v1/LeadTypes/{leadTypeGuid}/LeadStatuses. 1 Swagger File (using the Jekyll-Swagger layout) /requests. As a result, it's better to set the Azure App Service Authentication / Authorization Settings like this: This means that authorization is controlled by your app logic (either a Node. Please visit Swagger API documentation in. The subscription ID forms part of the URI for every service call. API Call Validation¶. Not too long ago Couchbase switched to using Swagger to document the Couchbase Mobile APIs. Custom API Update Swagger Error: The gateway did not receive a response from 'Microsoft. /// Returns the id of the created object That way C# understands that you're trying to reference a class type, and the example could be generated automatically from the schema of the class referenced. Can create a /swagger. Hi @msens, there's no way to do this unfortunately. Sample response headers: application/json. Create a new folder for the swagger server code named SwaggerServer and replace swift with nodejs-server in the build script as so. To make this easy I have written a small package called swagger-routes-express (updated recently to support OpenAPI 3 in addition to Swagger 2). cs Let's start downloading simple To-do projects from Github. when trying to get the users and do supply a wrong api-version in the header it always just returns Bad Request and not showing the response body The json of the response body should've been:. Show/Hide; List Operations Expand Operations post /api/v1/AccessKey. If send a response body, serialize the data. Install the Swashbuckle. APIs allow enterprises to exchange data between systems. swagger:response. Show/Hide; List Operations Response Class (Status 200) The case object identified by the given case number. These extensions allow customizing behaviors beyond simple API descriptions. Spec for Services provided by Nebula API Creates a new workspace. Reads a struct decorated with swagger:response and uses that information to fill up the headers and the schema for a response. Each operation must have at least one response defined, usually a successful response. I just updated to see if there were some updates I'd missed but we seem to be using the latest prebuilt dist (which says version 2. io provided?. These examples are extracted from open source projects. When the operation is successful, you can expect to see the HTTP 200 response code, as well as the response body which contains the isbn you provided as input: And there you have a simple REST API application with Swagger REST API documentation. The card will be sent to the company address. After this point, you can click on any of the endpoints listed below and click the "Try it out" button to see the response. Azure API Apps Adds Swagger Capability It is also possible to extend this feature with Swagger metadata while providing a simple to manage interface in the Azure Portal. In SoapUI Pro, you can create an assertion in a couple of clicks (see below to learn more). BioICAO API. As the official website of Swagger says :. Most REST APIs follow a standard protocol for response headers. This made train schedules incredibly difficult to coordinate and long trips nearly impossible to plan. Swagger Nodejs - Response Validation Failed I am building the API with Swagger and NodeJS, the annoying problem I have faced so far is Swagger validates the response, and it's not always smooth. 0 Introduction. The response example shows a sample response from the request example; the response schema defines all possible elements in the response. I would like to use the Swagger Compliance Assertion. This annotation is not used directly and will not be parsed by Swagger. NET MVC 6: Ahoy!. Swagger Code Generator, creates server stubs and clients for implementing and calling Swagger enabled API’s. Large Hachi Feather Hurricane [ID 3738535] 784185147216,Heart Tapestry Watercolor Love Symbol Print Wall Hanging Decor,Sleep Philosophy True North Peyton Reversible Plush Comforter Mini Set, Full/Que 675716674892. We will also add documentation to the REST API with swagger annotations. However if I navigate to the swagger ui and “Try it now” the response is a blob of. Response – Success ( 200) After executing, please check the response as below, we shall receive a successful response status (200: Ok). Ole Gunnar Solskjaer has urged Manchester United to learn from their mistakes. For example, 200 isn't just an arbitrary code decided upon by the OpenWeatherMap API developers. com My API calls work correctly in Postman. In SoapUI OS, perform the following steps: Open the REST Request test step and click to send the request. Ever since I posted a video on how to use Flow to upload photos to SharePoint from PowerApps, I get a lot of requests for help with the most mysterious bit - the swagger/openAPI file… To save you all much pain and suffering, here is a sample file that you can use to get started. I offered to write the server-side, a simple web API. Implementation Notes. Swagger built for designing APIs with the OpenAPI Specification (OAS), and has continued to meet the needs of developers building APIs with OAS. Conflicts are most likely to occur in response to a PUT request. Agenda Objective Introduction and defining REST endpoints Force. Django community: Django Q&A RSS This page, updated regularly, aggregates Django Q&A from the Django community. Add the following configuration code for Swagger into the ConfigureServices method of your Startup. Each operation must have at least one response defined, usually a successful response. You can configure Swagger inside your Application. apitude swagger Hotel Booking API BookingAPI covers the complete booking process; it allows generating lists of hotels, confirming bookings, getting lists of bookings, making cancellations and obtaining booking information. Filtering Response. We will learn how to expose automated swagger documentation from your REST API. If you use OpenAPI 2 (fka Swagger), visit OpenAPI 2 pages. Swagger UI - food. AccountUser. The Swagger 2 specification, which is known as OpenAPI specification, has several implementations. PowerApps' Swagger Error: The gateway did not receive a response from. Examples can be read by tools and libraries that process your API in some way. Swagger 2 definition and provides real-time error-feedback. Swagger SwaggerUi Documentation Discovery Help WebApi AspNet AspNetWebApi Docs WebHost IIS. For this sample, you can use the. This package provides utils and CLI to compute the diff between two swagger API specifications. Note, Swagger does not allow multiple response types for a single response code. Instread one can bind POJOs (model) to html using other means Spring proposes out of the box: Thymleaf temlates, Freemarker templates and JSP pages. This annotation is not used directly and will not be parsed by Swagger. A good documentation is crucial for any REST API. NET Web API project which contains a single controller with different HTTP methods, the live demo API explorer can be accessed here, and the source code can be found on GitHub. By continuing to browse this site, you agree to this use. This article continues to focus on the theme, 'separation of concerns. The first thing we'll need to do under the response object is name our new response. It shows no content. Swagger UI - api. Springfox supports both Swagger 1. It describes the capabilities of your API and how to access it with HTTP. Can create a /swagger. It should be used within the ApiResponses. IPAM vNext API documentation. net-webapi , swagger Update May 4th 2017: I have created a new NuGet package called Swashbuckle. response() decorator to list what HTTP status codes each method is expected to return and what the status code means. For those of you not familiar with Swagger, it's a metadata format for describing the ins and outs of a REST API - much like WSDL is for SOAP APIs - have a look at the Swagger website to learn more. ApiOperation Which describes an operation or typically a HTTP method against a specific path. Swagger UI - food. I couldn't find an example or a fitting annotation. API call validation takes a supported request and response object that represents a request/response cycle for an API call and validates it against a swagger schema. DX API Platform. Swagger aides in development across the entire API lifecycle, from design and documentation, to test and deployment. Airbrake Performance Monitoring gives you a broad view of real application quality while allowing you to drill down into…. The Stack of Frameworks / Specs. Swagger is a tool that can help in both creating and displaying such a documentation. The simplest configuration for swagger-stats is no options at all. 0 was finally released by the Open API Initiative. swagger出现no respo weiyangdong:博主,你好,我在SpringBoot中引入了swagger2,本地测试没有问题,部署在线上的环境swagger2请求接口都是 no response from server,启用80端口不太现实,Nginx 不能停,只能看看办法2,但是不太懂在哪里写那个配置?可否赐教。. Provide details and share your research! But avoid …. Swagger UI doesn't support authenticated connections well. The ThingPark DX API Platform is the central access point to discover and explore ThingPark DX APIs. cURL to Swagger. SwaggerClient (url, options) description and source code SwaggerClient = function (url, options) { this. Output diff can be configured according to version change. 2 we've had the @ControllerAdvice annotation to address the limitations of the previous two. rest-swagger. Join with us to develop and deliver best-in-class data integration solutions and services that fulfill common goals and satisfy mutual customers. So in this short post I decided to add documentation using Swagger for a simple ASP. Sample response headers: application/json. If you use OpenAPI 2 (fka Swagger), visit OpenAPI 2 pages. This API call should be used to look up historical data about your payload. 0 was finally released by the Open API Initiative. Got questions about NuGet or the NuGet Gallery? Status. Welcome to the ReadMe Documentation, where you'll find comprehensive guides and community support to help you start working with ReadMe as quickly as possible!. Second create a mapping layer that can map the internal models to different specification formats. Swagger-stub create automatically a stub of your swagger REST API. You can find details regarding swagger spec 2. Status codes are issued by a server in response to a client's request made to the server. BOSE LIFESTYLE SA-3 SA3 STEREO AMPLIFIER. The final result for the API explorer. Generating Swagger example responses with Swashbuckle April 21, 2015 May 25, 2017 mattfrear Code asp. swagger,swagger-ui I have an API call whose response includes a status field with a large number of potential status codes. Spring Boot RESTful API Documentation With Swagger 2 some of my time was related to the value of Response Content Type. cURL to Swagger. The Swagger 2 specification, which is known as OpenAPI specification, has several implementations. Generate a server from a swagger spec. This post is going to be very similar to a post from last December which can be found here. A swagger:route can specify a response name for a status code and then the matching response will be used for that operation in the swagger definition. unigroupinc. This is an online swagger codegen server. Java Examples for io. According to the Scott's video we now would create the Swagger file, but Swashbuckle shown in the video doesn't work with ASP. Create a new folder for the swagger server code named SwaggerServer and replace swift with nodejs-server in the build script as so. annotations. NET Web API Documentation using Swagger. Explore swagger. From Code To Online Services: My experiments of DevOps - Development of RESTful Web Services by Spring Boot, Jersey, Swagger 1. The following java examples will help you to understand the usage of io. org JIRA administrators by use of this form. List StorageGRID bucket folders from NetApp Data Broker. The Response message will include "Content-Type", "Content-Disposition" & "Content-Length". You can add examples to parameters, properties and objects to make OpenAPI specification of your web service clearer. Per default, it does not use your xml comments in the code and this needs to be configured if required. The Response message will include "Content-Type", "Content-Disposition" & "Content-Length". I managed to generate a swagger specification using yanger, as explained in the NSO Northbound 4. BioICAO API. 0 at the top of swagger-ui. The server generating a 401 response MUST send a WWW-Authenticate header field 1 containing at least one challenge applicable to the target resource. I couldn't find an example or a fitting annotation. But when I send requests from Swagger UI, it shows "no response from server" for all requests: Response Body no content. swagger documentation: swagger-ui with jersey REST WS. By clicking 'Try it Out' and then 'Execute', swagger triggers a call to 'get' method to /api/stock. RAML, ALPS and hypermedia formats. 0 is the current recommended version of OData. The function can be used to send an email campaign to a single contact or an entire list of contacts. get /version. For this sample, you can use the. Cross Stitch Chart - Kit Boston Terrier Dog 5,Letter Holder & Opener in Ginkgo Shape (Gold color),100x 17CM Сircular base , bottom for сrochet basket , knitting yarn , macramé ,. To the rescue, there's already a work in progress project on GitHub which is porting Swashbuckle to ASP. If you use OpenAPI 2 (fka Swagger), visit OpenAPI 2 pages. As a result, it's better to set the Azure App Service Authentication / Authorization Settings like this: This means that authorization is controlled by your app logic (either a Node. 2 and older) is popular for Spring Boot applications. Below is some supporting information. cs Let's start downloading simple To-do projects from Github. Integration with ASP. I guess it was the "examples" object that swagger2api was not able to accept. When I click "Try it out", I get the following results: Response Body no content Response Code Response Headers { "error": "no response from server" } The curl works on the command line, and Grokbase › Groups › Google › swagger-swaggersocket › January 2016. edmx) and Scaffold API Controller Integrating Swashbuckle/Swagger UI framework to represent API operations Creating an Asp. While the Swagger UI display is designed to be responsive, the collapse/expand sections in the Model views still have overflow issues in responsive views, so you might run into issues with embedding. com/questions/38647242/swagger-tools-error-handler-middleware-not-catching-errors. OData Version 4. Some modifications using Microsoft specific Swagger extensions may be necessary to fully integrate a Custom API with Flow. ng swagger. get /v0/administrations/{businessTenant}/operations/{operationName}/attributes. from __future__ import print_statement import time import swagger_client from swagger_client. Join with us to develop and deliver best-in-class data integration solutions and services that fulfill common goals and satisfy mutual customers. Change Default Swagger Route in an ASP. See why millions of users trust SoapUI for testing their APIs today!. I'm using the pre-built dist directory in master. The subscription ID forms part of the URI for every service call. NET Core API using Swagger and then look at the limitations of this approach and some alternatives that might be worth exploring. This is a sample server Petstore server. So, wheras all the other middleware are case-sensitive and strict about trailing slashes, the Files middleware is the opposite. Every city had its own time calculation, which meant that there were over 300 different time zones across the country. Swagger has two parts: swagger-docs which generates docs for your API, and swagger-ui which uses JSON generated by swagger-docs to build a UI used to consume and interact with those APIs. 0 Contracts. 0 middlware and mocks for Express. API to view feed information and download feeds from TransitFeeds. com site is served from static JSON files rather than a running Gateway. The Swagger Editor has JSON code and its UI facilitates easier code indentation, keyword highlighting and shows syntax errors on the fly. Create a new room with various configuration options. 0 20 March 2017. These examples are extracted from open source projects. Data export service provides the ability for customers to export schema and data from Dynamics 365 sales, service and marketing entities to a specified Azure destination like Azure SQL. Swagger Documentation for OAuth Server APIs API definitions are available in Swagger for the OAuth Server APIs. Show/Hide; List Operations Expand Operations post /api/v1/AccessKey. In the current version of Swagger, critical things like "oneOf" are still not supported. Expanding Your Reach A community of partners reaches across global industries and markets. The main focus for creating it was to be able to integrate easily to Java based projects, have proper reporting capabilities meaning HTML, JSON, etc. For this sample, you can use the. It can assemble these documents. • Constantly tracking the services and keeping it up for the entire duration of testing Cycle. json) The core to the Swagger flow is the Swagger specification—by default, a document named swagger. Since I published the original version of the soapui-swagger-plugin in late 2012, Swagger has continued to gain traction within the API community. swagger documentation: swagger-ui with jersey REST WS. Instread one can bind POJOs (model) to html using other means Spring proposes out of the box: Thymleaf temlates, Freemarker templates and JSP pages. yml -l nodejs-server -o SwaggerServer" > server_build. 2 and older) is popular for Spring Boot applications. io how can I provide a table of these status codes with their corresponding description? Gulp Plugin for Validating Swagger Documents?. Check the value of the If-None-Match HTTP request header. 0 at the top of swagger-ui. Finds entities by filter conditions. This annotation is not used directly and will not be parsed by Swagger. 1 200 OK, tells us the status of the request (200). NET Core Install NuGet Package. You can use Swagger Codegen easily via CLI, Maven, as well as other ways. Requests of the Swagger 2. Thanks Nazila :) However i have one query, Let say we have 2 appnode AN100 and AN200 and we have change doc port 7777 and 7888 respectvely. A DX API intends to expose features of ThingPark OS, ThingPark Wireless, ThingPark X, ThingPark Location and other ThingPark products through a REST “Developer Experience” API, i. Here we will learn what are all the annotations needed to customize the swagger documentation and create a Docket Bean in our Spring Configuration class. Subscriber Ref Field. So in this short post I decided to add documentation using Swagger for a simple ASP. Visual Studio 2017 and Swagger: Building and Documenting Web APIs The OpenAPI ‘Swagger’ Specification defines a protocol that allows applications to discover, and generate documentation of methods, parameters and models of REST APIs, This provides a way for any software to identify the features of a REST API. Error: 'Operation id "addPet" must specify either a default response or a 200-series response. If we only have Swagger definition document, not the actual implementation, what can we do with Azure Functions? Why not directly rendering Swagger document by Azure Function code? Render Swagger Definition via Azure Functions. There are two set of response codes that one will see when one makes an API call. Learn more. Swashbuckle is a handy library to easily bring Swagger support to your ASP. I want to note that, until later this year when Swagger adopts the Open API Specification 3. Requests of the Swagger 2. docker pull swaggerapi/swagger-ui docker run -t -p 80:8080 swaggerapi/swagger-ui docker ps docker exec -it /bin/sh swagger-ui# cd /usr/share/nginx/html swagger-ui# vi index. As mentioned earlier you don't need a separate package for swagger annotations (you could put the swagger:parameters annotation on api. Retrieve events from an existing Streaming Session, this operation will return immediately if any events are. Best of all for me, Swagger can generate client SDKs… in 40 different languages!. You can add examples to parameters, properties and objects to make OpenAPI specification of your web service clearer. As a result, it's better to set the Azure App Service Authentication / Authorization Settings like this: This means that authorization is controlled by your app logic (either a Node. Now, let's see how we can handle the most common client errors - basically scenarios of a client sent an invalid request to the API: BindException: This exception is thrown when fatal binding errors occur. Each operation must have at least one response defined, usually a successful response. Whenever APIs are defined under a given namespace, they appear under a given heading in Swagger (we'll explore Swagger later in this article). So, if you are developing an Azure-based REST service, Swagger is here to help you speed the development and testing process. Asking for help, clarification, or responding to other answers. Swagger's Schema Object provides limited support for JSON Schema's additionalProperties keyword. Gets the version of the REST API. For most features, namely method summaries and the descriptions of parameters and response codes, the use of an XML file is mandatory. You can vote up the examples you like and your votes will be used in our system to generate more good examples. Note that there is a single controller named 'StockController' in the demo application. Get all subscriptions created for the current account and client. Write, run, integrate, and automate advanced API Tests with ease. Authentication. It is currently difficult to debug the Swagger UI in the internal browser because "no response from server" appears to be a catch all. Response Code 0. x controller with attached rca_43. 0 MVC API using Swagger with Swashbuckle. /// Returns the id of the created object That way C# understands that you're trying to reference a class type, and the example could be generated automatically from the schema of the class referenced. I'm using the pre-built dist directory in master. The main focus for creating it was to be able to integrate easily to Java based projects, have proper reporting capabilities meaning HTML, JSON, etc. hbr file ,I can see for POST/PUT/Patch verbs ,a request body div has been defined which acts as a container for Value Description and Schema. Add Swagger to your project; One of my biggest irritations with some APIs is the dreaded "HTTP Response 500: Internal Server Error". You can add resource parameters, summaries and descriptions to your APIs using the Swagger Editor. Implementation Notes. Swagger Support: It is possible to make your application produce Swagger-compliant JSON output based on @ApiDoc annotations, which can be used for consumption by swagger-ui. NET Core (or ASP. This will be present in. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: