Project

Profile

Help

Task #3579

closed

Publish REST API bindings for Python on PyPI

Added by dkliban@redhat.com about 6 years ago. Updated almost 4 years ago.

Status:
CLOSED - COMPLETE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Target Release - Python:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

With help from swagger-codegen[0], Pulp's API schema can be used to generate bindings in many different languages.

I was able to GET the schema in JSON format from http://localhost:8000/api/v3/docs/api.json and then uploaded the JSON file to swagger editor[1]. I then clicked on "Generate Client" and selected "Python". This produced a ZIP archive that contained a python package with the bindings and documentation.

The hosted solution is backed by a Java application called swagger-codegen[2]. The goal of this task is to use swagger-codegen to generate a package called pulpcore-api-bindings and upload it to PyPI. The version should be the same as the version of pulpcore that was used to generate the bindings.

[0] https://swagger.io/swagger-codegen/
[1] http://editor.swagger.io/#/
[2] https://github.com/swagger-api/swagger-codegen


Related issues

Copied to Pulp - Task #3580: Document how to generate REST API bindings using swagger-codegenCLOSED - COMPLETEdkliban@redhat.com

Actions
Actions #1

Updated by dkliban@redhat.com about 6 years ago

  • Tracker changed from Issue to Task
  • % Done set to 0
Actions #2

Updated by dkliban@redhat.com about 6 years ago

  • Description updated (diff)
Actions #3

Updated by bizhang about 6 years ago

Would this be used for generating a CLI or is there some other value being proposed from this? Who is the intended audience of this binding?

Actions #4

Updated by dkliban@redhat.com about 6 years ago

This package will be used to build a CLI for Pulp 3. However, this is not actually the CLI.

I am filing a separate task to publish bindings for Ruby on rubygems.org. That package will be recommended to Katello.

Actions #5

Updated by bizhang about 6 years ago

  • Groomed changed from No to Yes

Oh nice the generated package comes with its own setup.py and everything,

Actions #6

Updated by dkliban@redhat.com about 6 years ago

  • Copied to Task #3580: Document how to generate REST API bindings using swagger-codegen added
Actions #7

Updated by dkliban@redhat.com about 6 years ago

  • Description updated (diff)
Actions #8

Updated by ttereshc almost 6 years ago

  • Sprint set to Sprint 37
Actions #9

Updated by rchan almost 6 years ago

  • Sprint deleted (Sprint 37)

This item won't be moving forward to Sprint 38.

Actions #10

Updated by rchan almost 6 years ago

  • Sprint Candidate changed from Yes to No
Actions #11

Updated by bmbouter about 5 years ago

  • Tags deleted (Pulp 3)
Actions #12

Updated by bmbouter over 4 years ago

  • Project changed from Pulp to Python Support
  • Sprint/Milestone deleted (3.0.0)
Actions #13

Updated by dalley almost 4 years ago

  • Status changed from NEW to CLOSED - COMPLETE

Also available in: Atom PDF