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

WIP #2216 create event api for orangizer dashboard #2217

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

phana25
Copy link
Collaborator

@phana25 phana25 commented Jan 6, 2025

URL: /api/v2/organizer/events?vendor_id=9
This API show only Events of each vendor by ID

"data": [
    {
        "id": "407",
        "type": "event",
        "attributes": {
            "name": "Run with Panhar",
            "subtitle": "# DoItByHeart",
            "from_date": null,
            "to_date": null,
            "description": "<p>Welcome to the Event of year which everyone can choose the distance they want to run . The event is hosted at Siem Reap near Angkor Wat Temple.</p>\r\n<p>Type of Running :</p>\r\n<p>10KM - Run behind the Angkor Wat Temple</p>\r\n<p>20KM - Run at Bayon Temple</p>\r\n<p>30KM - Run at Ta Prom Temple</p>",
            "vendor_id": 9,
            "permalink": "events/run-with-panhar",
        },
        "relationships": {
            "category_icon": {
                "data": {
                    "id": "1659",
                    "type": "asset"
                }
            },
            "app_banner": {
                "data": {
                    "id": "1652",
                    "type": "asset"
                }
            },
            "web_banner": {
                "data": {
                    "id": "1660",
                    "type": "asset"
                }
            },
            "home_banner": {
                "data": {
                    "id": "1662",
                    "type": "asset"
                }
            }
        }
    },
    {
        "id": "119",
        "type": "event",
        "attributes": {
            "name": "Phum Domnak Domrey",
            "subtitle": "Fun Activities",
            "from_date": null,
            "to_date": null,
            "description": "",
            "vendor_id": 9,
            "permalink": "events/phum-domnak-domrey",
        },
        "relationships": {
            "category_icon": {
                "data": {
                    "id": "887",
                    "type": "asset"
                }
            },
            "app_banner": {
                "data": {
                    "id": "903",
                    "type": "asset"
                }
            },
            "web_banner": {
                "data": null
            },
            "home_banner": {
                "data": {
                    "id": "904",
                    "type": "asset"
                }
            }
        }
    },

URL: /api/v2/organizer/events/395?include=app_banner,web_banner
This show only event by ID with taxon image url

{
    "data": {
        "id": "395",
        "type": "event",
        "attributes": {
            "name": "The Q - Solo Concert 2",
            "subtitle": " #theQsoloconcert ",
            "from_date": "2025-01-03T12:00:00.000+07:00",
            "to_date": "2025-01-31T12:00:00.000+07:00",
            "description": "<p>Immerse yourself in an exceptional musical experience at \"The Q Concert - Solo Concert\" featuring the acclaimed artist Aok Sokunkanha. This exclusive event promises an intimate and memorable performance in the heart of Phnom Penh.</p>\r\n<p><strong>Ticket Options:</strong></p>\r\n<ul>\r\n<li><strong>VIP:</strong> Enjoy unparalleled access with prime seating, entry to a dedicated VIP lounge, and a unique opportunity for a meet-and-greet with Aok Sokunkanha.</li>\r\n<li><strong>Premium:</strong> Opt for premium seating with superb views and access to exclusive event amenities.</li>\r\n<li><strong>Standard:</strong> Choose a standard ticket for excellent value and access to general seating.</li>\r\n</ul>\r\n<p>Explore the vibrant cultural scene in Cambodia and be part of this extraordinary evening of live music. Secure your tickets today and join us for a night of unforgettable entertainment.</p>",
            "vendor_id": 145,
            "permalink": "events/the-q-solo-concert-2"
        },
        "relationships": {
            "category_icon": {
                "data": {
                    "id": "1461",
                    "type": "asset"
                }
            },
            "app_banner": {
                "data": {
                    "id": "1463",
                    "type": "asset"
                }
            },
            "web_banner": {
                "data": {
                    "id": "1462",
                    "type": "asset"
                }
            },
            "home_banner": {
                "data": {
                    "id": "1464",
                    "type": "asset"
                }
            }
        }
    },
    "included": [
        {
            "id": "1463",
            "type": "asset",
            "attributes": {
                "transformed_url": null,
                "alt": null,
                "original_url": "http://127.0.0.1:4000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdm9PIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bdd79f65547fb77a811d024c89e3c95ca9e4e995/Compressed_Product_Img_Guideline%20(1).png",
                "position": 3,
                "styles": [
                    {
                        "url": "http://127.0.0.1:4000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdm9PIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bdd79f65547fb77a811d024c89e3c95ca9e4e995/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHZ2FWOD0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1854411320e76426a7d5a641c47e02b3c68b19ea/Compressed_Product_Img_Guideline%20(1).png",
                        "width": "160",
                        "height": "90"
                    },
                    {
                        "url": "http://127.0.0.1:4000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdm9PIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bdd79f65547fb77a811d024c89e3c95ca9e4e995/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFMZ0FXa0NEZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--5aa00e7d00341dfad74f927f30ac76b3baf43187/Compressed_Product_Img_Guideline%20(1).png",
                        "width": "480",
                        "height": "270"
                    },
                    {
                        "url": "http://127.0.0.1:4000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdm9PIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bdd79f65547fb77a811d024c89e3c95ca9e4e995/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFMQUEya0NIQUk9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--d4d9748f24d1a5f6d7093fe7111c2bc0b20d9ccd/Compressed_Product_Img_Guideline%20(1).png",
                        "width": "960",
                        "height": "540"
                    }
                ]
            }
        },
        {
            "id": "1462",
            "type": "asset",
            "attributes": {
                "transformed_url": null,
                "alt": null,
                "original_url": "http://127.0.0.1:4000/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdmtPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2ac832448b5ef3e0dd449eb830b9fb3640714bc8/Compressed_Product_Img_Guideline%20(1).png",
                "position": 2,
                "styles": [
                    {
                        "url": "http://127.0.0.1:4000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdmtPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2ac832448b5ef3e0dd449eb830b9fb3640714bc8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFHZ2FTVT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--431bc4de343f4c3f33c6ef782f1c161b3c4d5b1b/Compressed_Product_Img_Guideline%20(1).png",
                        "width": "160",
                        "height": "32"
                    },
                    {
                        "url": "http://127.0.0.1:4000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdmtPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2ac832448b5ef3e0dd449eb830b9fb3640714bc8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFMUUFtbGYiLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--e936fd0c31447b14989082b6d0c2989ee3ca48e8/Compressed_Product_Img_Guideline%20(1).png",
                        "width": "720",
                        "height": "90"
                    },
                    {
                        "url": "http://127.0.0.1:4000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdmtPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2ac832448b5ef3e0dd449eb830b9fb3640714bc8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFLZ0JXa0J0QT09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--3a16cc16fda4641ca0d0583f02fb540d4a4bf092/Compressed_Product_Img_Guideline%20(1).png",
                        "width": "1440",
                        "height": "180"
                    }
                ]
            }
        }
    ]
}

@phana25 phana25 force-pushed the 2216-create-event-api-for-organizer-dashboard branch from d56c93d to e510064 Compare January 6, 2025 04:03
@phana25 phana25 self-assigned this Jan 7, 2025
@phana25 phana25 force-pushed the 2216-create-event-api-for-organizer-dashboard branch 3 times, most recently from 04e20ed to b3f1513 Compare January 9, 2025 09:01
@phana25 phana25 added the api label Jan 9, 2025
@phana25 phana25 force-pushed the 2216-create-event-api-for-organizer-dashboard branch 3 times, most recently from 0f13231 to e0f188b Compare January 9, 2025 09:43
@phana25 phana25 changed the title WIP #2216 create event api for orangizer dashboard Close #2216 create event api for orangizer dashboard Jan 9, 2025
@phana25 phana25 requested a review from channainfo January 9, 2025 10:56
@phana25 phana25 force-pushed the 2216-create-event-api-for-organizer-dashboard branch from e0f188b to 3ae9cce Compare January 10, 2025 02:56
@phana25 phana25 force-pushed the 2216-create-event-api-for-organizer-dashboard branch from 3ae9cce to fc17761 Compare January 10, 2025 10:55
@phana25 phana25 changed the title Close #2216 create event api for orangizer dashboard WIP #2216 create event api for orangizer dashboard Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant