Closed
Bug 923675
Opened 12 years ago
Closed 11 years ago
Validation API endpoint should support application/x-www-form-urlencoded
Categories
(Marketplace Graveyard :: API, defect, P3)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: cvan, Unassigned)
References
Details
I can never get an app to validate:
% curl -X POST 'https://marketplace.firefox.com/api/v1/apps/validation/' -d 'manifest=http://app.testmanifest.com/manifest.webapp'
{"error_message": {"__all__": ["Unsupported Content-Type header 'application/x-www-form-urlencoded'", "Unsupported Accept header '*/*'"]}}
Comment 1•12 years ago
|
||
Works if you do this:
curl -X POST 'https://marketplace.firefox.com/api/v1/apps/validation/' -d '{"manifest": "http://app.testmanifest.com/manifest.webapp"}' -H 'Content-Type: application/json'
Comment 2•12 years ago
|
||
Should we be supporting form-encoding at this endpoint?
Flags: needinfo?(cvan)
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Chuck Harmston [:chuck] from comment #2)
> Should we be supporting form-encoding at this endpoint?
I would like for that to be accepted yes.
$.post('https://marketplace.firefox.com/api/v1/apps/validation/', {'manifest': 'http://app.testmanifest.com/manifest.webapp'}
is nicer than
$.ajax({
type: 'post',
url: 'https://marketplace.firefox.com/api/v1/apps/validation/',
data: {manifest: 'http://app.testmanifest.com/manifest.webapp'},
contentType: 'application/json',
dataType: 'json',
});
Flags: needinfo?(cvan)
Updated•12 years ago
|
Summary: Validation API endpoint does not work for app submission → Validation API endpoint should support application/x-www-form-urlencoded
Updated•12 years ago
|
Priority: -- → P3
Comment 4•11 years ago
|
||
We fixed that at some point (was that bug filed before the DRF switch ?)
curl -X POST 'https://marketplace.firefox.com/api/v1/apps/validation/' -d 'manifest=http://app.testmanifest.com/manifest.webapp'
{"id":"7e4a0d62f74d483a9e784ca906e266a5","processed":true,"valid":true,"validation":{...
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•