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)

defect

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 '*/*'"]}}
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'
Should we be supporting form-encoding at this endpoint?
Flags: needinfo?(cvan)
(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)
Depends on: 910620
Summary: Validation API endpoint does not work for app submission → Validation API endpoint should support application/x-www-form-urlencoded
Priority: -- → P3
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.