I am going to use a local copy in my examples. Although swagger-codegen can generate APIs directly from a URL, I recommend saving a local copy of this file. I’m going to use swagger-codegen to generate my code. Click that, and you'll see the link for "Download OpenAPI Spec." This is a JSON file that describes the REST API for Jira Cloud. If you go to the documentation for the Jira Cloud REST API, you'll see the "…" in the top right.
#Jira client api update
Generating a client library from the spec using a code generation tool is a quick way to get started (and easy to update in the future). While you can always write your own code to call Jira’s APIs, the APIs change all the time in small ways. Just a quick recap: Swagger/Open API is a way of documenting APIs in a standard way. If you need to call a new Jira Cloud API, or act on some feature that is being deprecated, then being able to generate an up-to-date library might be of value to your project. If these work well for you, then that might be a good solution.Ītlassian publishes the Swagger/Open API spec for Jira’s API in real time though. There are 3rd party Python libraries around that can talk to Jira Cloud. I will generate a library for Python, and then run through some sample code to create a project, find the “task” issue type in the project, and then create a issue of type “task”. Here I’ll cover doing the same with Python. You may have read my previous article about generating a Java library to call Jira’s REST APIs, but what about other languages?