A while back, we published a tutorial showing how to generate a REST client for Jira Cloud using swagger codegen. Many of you told us that you found it helpful and asked for a tutorial showing the same process for Confluence Cloud.
We’re happy to share that we’ve posted Generating a Java REST Client for Confluence Cloud on the Atlassian Developer Blog—which, you’ve guessed it—walks through the process of generating a REST API client for Confluence.
If any questions come up, post them here in this thread. And if you’ve experimented with this process for any other languages, let us know how it went and share what you learned.
Hi Ben,
it seems that ContentBodyExpandable is not generated:
public class ContentBody {
…
@JsonProperty(“_expandable”)
private ContentBodyExpandable _expandable = null;
Therefore ContentBody shows several errors:
ContentBodyExpandable cannot be resolved to a type
And indeed there is not such a class file.
Also ContentCreateSpace from your main method is missing.
Hi there @axelroeber . Yes I see what you mean. Let me follow that up with the Confluence team.
@axelroeber I have raised this bug to track this issue: [CONFCLOUD-72870] Generating source code from Confluence's Open API spec produces invalid source code - Create and track feature requests for Atlassian products.
For anyone looking for the Jira article: https://community.atlassian.com/t5/Jira-articles/Generating-a-REST-client-for-Jira-Cloud/ba-p/1307133
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.