-
-
This is going to cause problems, because the files are not always relative to the server. You need to ensure that they're not an absolute path first. For example, they may be on Amazon S3.
-
Best to use obj.get_absolute_url() here instead of calling the serialize function. Same with all other instances.
-
Add new 'absolute_url' field to Web API Resources
Review Request #4902 — Created Nov. 5, 2013 and submitted
Add new 'absolute_url' field to Web API Resources
Add a new 'absolute_url' field to BaseFileAttachmentResource,
BaseScreenshotResource, ReviewGroupResource, and ReviewRequestResource.
Unit tests passed.
Description | From | Last Updated |
---|---|---|
This is going to cause problems, because the files are not always relative to the server. You need to ensure … |
chipx86 | |
Best to use obj.get_absolute_url() here instead of calling the serialize function. Same with all other instances. |
chipx86 | |
Same comment as with the file attachments. |
chipx86 |
ED
- Change Summary:
-
Added metadata for url and absolute_url.
Fixed open issues. - Diff:
-
Revision 2 (+54 -3)
ED
- Change Summary:
-
Rebased changes.
Updated absolute_url type to six.text_type. - Diff:
-
Revision 3 (+54 -3)