Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return full thumbail image in api #295

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

dimasciput
Copy link
Collaborator

For #291

The new api will return :

{
    "total": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "resource_type": "Style",
            "uuid": "de3bd56f-1c49-43d7-97a8-ebc6008d6083",
            "name": "Cube",
            "creator": "creator",
            "upload_date": "2020-11-17T00:59:37.341000",
            "download_count": 1,
            "description": "This a cube",
            "file": "http://localhost:62202/media/styles/2023/qartoon.xml",
            "thumbnail": "http://localhost:62202/media/cache/be/7a/be7a1063302bd3a69734ee227bfa793b.jpg",
            "thumbnail_full": "http://localhost:62202/media/styles/2023/master_sword.jpg"
        }
    ]

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (98041b0) 76.81% compared to head (16cfed7) 76.83%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #295      +/-   ##
==========================================
+ Coverage   76.81%   76.83%   +0.01%     
==========================================
  Files         128      128              
  Lines        4810     4813       +3     
==========================================
+ Hits         3695     3698       +3     
  Misses       1115     1115              
Impacted Files Coverage Δ
qgis-app/api/serializers.py 91.17% <100.00%> (+0.26%) ⬆️
qgis-app/api/tests/test_views.py 92.35% <100.00%> (+0.09%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dimasciput dimasciput merged commit 0a86431 into qgis:master Jul 18, 2023
2 checks passed
@dimasciput dimasciput deleted the show_full_thumbnail branch July 18, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants