Closed dreadpool2 closed 6 years ago
Not possible right now
But the API does support in showing us a list of events under an event type
But not similar events
I saw that an example of an event was under the topic ( Travel and Leisure ) in our API. So possibly if we show them the events under same topic, won't they be alike ?
Alright, go ahead
@iamareebjamal There seems to be a requirement for admin access for creating a event topic. Moreover when I try to update an event its showing me that co-organizer access is required ?
You have to create an event yourself for that
@iamareebjamal I can't create an event topic due to admin access. Actually not a single event topic exists in the server. What should I do?
Run a local instance of server and create an event topic
@iamareebjamal I am facing a peculiar error. I have run an instance of the server locally. When I create an event with a POST request, it is being created as the API endpoint of the event id shows the response of the event. Problem is that /v1/events
API endpoint wont show any events at all. Is this a bug or am I going wrong somewhere?
Sounds like a bug
Should I create an issue in the server then?
@iamareebjamal Everything seems fine. I am able to fetch my locally created events, I am able to create event topics too. The thing is I am not sure about the process of linking the event with an event topic. I tried it by setting field event_topic_id
while creating a new event, but it didn't work. Am I doing this wrong?
I created the event. After that using get request for the event ( included event topic ) Below is response
{
"links": {
"self": "/v1/events/13"
},
"jsonapi": {
"version": "1.0"
},
"data": {
"relationships": {
"microlocations": {
"links": {
"self": "/v1/events/13/relationships/microlocations",
"related": "/v1/events/13/microlocations"
}
},
"ticket-tags": {
"links": {
"self": "/v1/events/13/relationships/ticket-tags",
"related": "/v1/events/13/ticket-tags"
}
},
"moderators": {
"links": {
"self": "/v1/events/13/relationships/moderators",
"related": "/v1/users"
}
},
"orders": {
"links": {
"self": "/v1/events/13/relationships/orders",
"related": "/v1/events/13/orders"
}
},
"attendees": {
"links": {
"self": "/v1/events/13/relationships/attendees",
"related": "/v1/events/13/attendees"
}
},
"registrars": {
"links": {
"self": "/v1/events/13/relationships/registrars",
"related": "/v1/users"
}
},
"faqs": {
"links": {
"self": "/v1/events/13/relationships/faqs",
"related": "/v1/events/13/faqs"
}
},
"event-type": {
"links": {
"self": "/v1/events/13/relationships/event-type",
"related": "/v1/events/13/event-type"
}
},
"faq-types": {
"links": {
"self": "/v1/events/13/relationships/faq-types",
"related": "/v1/events/13/faq-types"
}
},
"session-types": {
"links": {
"self": "/v1/events/13/relationships/session-types",
"related": "/v1/events/13/session-types"
}
},
"event-copyright": {
"links": {
"self": "/v1/events/13/relationships/event-copyright",
"related": "/v1/events/13/event-copyright"
}
},
"tickets": {
"links": {
"self": "/v1/events/13/relationships/tickets",
"related": "/v1/events/13/tickets"
}
},
"tax": {
"links": {
"self": "/v1/events/13/relationships/tax",
"related": "/v1/events/13/tax"
}
},
"role-invites": {
"links": {
"self": "/v1/events/13/relationships/role-invites",
"related": "/v1/events/13/role-invites"
}
},
"event-sub-topic": {
"links": {
"self": "/v1/events/13/relationships/event-sub-topic",
"related": "/v1/events/13/event-sub-topic"
}
},
"tracks": {
"links": {
"self": "/v1/events/13/relationships/tracks",
"related": "/v1/events/13/tracks"
}
},
"access-codes": {
"links": {
"self": "/v1/events/13/relationships/access-codes",
"related": "/v1/events/13/access-codes"
}
},
"coorganizers": {
"links": {
"self": "/v1/events/13/relationships/coorganizers",
"related": "/v1/users"
}
},
"event-topic": {
"links": {
"self": "/v1/events/13/relationships/event-topic",
"related": "/v1/events/13/event-topic"
},
"data": null
},
"organizers": {
"links": {
"self": "/v1/events/13/relationships/organizers",
"related": "/v1/users"
}
},
"event-invoices": {
"links": {
"self": "/v1/events/13/relationships/event-invoices",
"related": "/v1/events/13/event-invoices"
}
},
"social-links": {
"links": {
"self": "/v1/events/13/relationships/social-links",
"related": "/v1/events/13/social-links"
}
},
"sponsors": {
"links": {
"self": "/v1/events/13/relationships/sponsors",
"related": "/v1/events/13/sponsors"
}
},
"speakers": {
"links": {
"self": "/v1/events/13/relationships/speakers",
"related": "/v1/events/13/speakers"
}
},
"sessions": {
"links": {
"self": "/v1/events/13/relationships/sessions",
"related": "/v1/events/13/sessions"
}
},
"speakers-call": {
"links": {
"self": "/v1/events/13/relationships/speakers-call",
"related": "/v1/events/13/speakers-call"
}
},
"custom-forms": {
"links": {
"self": "/v1/events/13/relationships/custom-forms",
"related": "/v1/events/13/custom-forms"
}
},
"track-organizers": {
"links": {
"self": "/v1/events/13/relationships/track-organizers",
"related": "/v1/users"
}
},
"discount-codes": {
"links": {
"self": "/v1/events/13/relationships/discount-codes",
"related": "/v1/events/13/discount-codes"
}
},
"feedbacks": {
"links": {
"self": "/v1/events/13/relationships/feedbacks",
"related": "/v1/events/13/feedbacks"
}
}
},
"links": {
"self": "/v1/events/13"
},
"id": "13",
"attributes": {
"ends-at": "2016-12-14T23:59:59.123456+00:00",
"code-of-conduct": "example",
"schedule-published-on": null,
"icon-image-url": "http://127.0.0.1:5000/static/media/events/13/icon/WWd1MTlmT3/170b31ba-804c-4974-ac3c-89a3726e59ea.jpg",
"can-pay-onsite": true,
"can-pay-by-cheque": true,
"ical-url": null,
"bank-details": "example",
"thumbnail-image-url": "http://127.0.0.1:5000/static/media/events/13/thumbnail/ZEdhQlVzR3/d8e9c946-17f9-4fd3-8eff-e58159b2e699.jpg",
"external-event-url": "http://example.com",
"can-pay-by-paypal": true,
"is-sponsors-enabled": false,
"organizer-description": "example",
"created-at": "2018-06-21T15:02:11.931929+00:00",
"latitude": 1.23456789,
"is-tax-enabled": true,
"name": "Great",
"large-image-url": "http://127.0.0.1:5000/static/media/events/13/large/NWVtRGZOTE/2f3d78a1-ae55-4d6f-8503-1de629c6a563.jpg",
"searchable-location-name": "example",
"is-sessions-speakers-enabled": true,
"can-pay-by-stripe": true,
"deleted-at": null,
"payment-currency": "USD",
"identifier": "44767eb7",
"payment-country": "US",
"starts-at": "2016-12-13T23:59:59.123456+00:00",
"organizer-name": "example",
"has-organizer-info": false,
"is-ticketing-enabled": true,
"can-pay-by-bank": true,
"original-image-url": "http://127.0.0.1:5000/static/media/events/13/original/dElkTUliM1/bf387293-4689-4c89-b7c3-15896f8d3a77.jpg",
"paypal-email": "example@example.com",
"description": "example",
"location-name": "example",
"cheque-details": "example",
"ticket-url": "http://example.com",
"is-map-shown": true,
"longitude": 1.23456789,
"privacy": "public",
"logo-url": "http://example.com/example.png",
"onsite-details": "example",
"pentabarf-url": null,
"xcal-url": null,
"state": "draft"
},
"type": "event"
}
}
data is clearly null
I got it to work by creating relationship with event topic. Seems like it was given wrong in the docs :+1:
Raise an issue about that on server
For now, we can show the user a list of similar events in the event details section by showing events based on the event topic As in eventbrite Working on it :+1: