Closed Bug 1125799 Opened 9 years ago Closed 8 years ago

Implement API to POST a new package for an existing app

Categories

(Marketplace Graveyard :: API, defect, P3)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mat, Unassigned)

Details

(Whiteboard: [marketplace-transition])

We have an API allowing developers to POST a new packaged app [0], but we don't seem to have anything to POST a new package for any existing app. This means a developer can not 100% manage a packaged app using the API.


[0] POST /api/v2/apps/app/ - http://firefox-marketplace-api.readthedocs.org/en/latest/topics/submission.html#app-post-label
Would be a good occasion to clean up a few things:

- The way the POST to create a new app is done [0] could be simplified and refactored to use the generic DRF implementation of create(), with a custom serializer, like I've implemented it in the langpacks API [1]. It might then be possible to share that code with the API view that this bug is about.

- Another thing that should be extracted and shared is what is currently done in the view when you submit a new version in the devhub [2].

[0] https://github.com/mozilla/zamboni/blob/08e329d475312c1b96d3c238eee1af66d4e94737/mkt/webapps/views.py#L130
[1] https://github.com/mozilla/zamboni/blob/0f4b1d7b93ad9c9f5685cdc3c4686de2ff04e44a/mkt/langpacks/serializers.py#L10
[2] https://github.com/mozilla/zamboni/blob/08e329d475312c1b96d3c238eee1af66d4e94737/mkt/developers/views.py#L211
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Whiteboard: [marketplace-transition]
You need to log in before you can comment on or make changes to this bug.