glenrockindiancommunity / gric-event-management

Glen Rock Indian Community Event Management App
MIT License
2 stars 0 forks source link

Holi Json #16

Open varunmehta opened 7 years ago

varunmehta commented 7 years ago

{ "name": "Glen Rock Holi - 2017", "description": "Let's celebrate the onset of Spring with colors. Live DJ Music Fun and Kids color run. Food available for purchase at the event. Net proceeds from the event and sale of food will be donated to Glen Rock Middle and High School", "startDateTime": "2017-04-22T11:00:00", "endDateTime": "2017-04-22T14:00:00", "maxCapacity": 200, "location": "Lower Faber Fields, Glen Rock (380 Doremus Ave, Glen Rock)", "locationURL": "https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d1506.2442243039332!2d-74.12964083386848!3d40.970784040398534!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c2fcab80b38c0b%3A0x933ea1f3338e8f4b!2sFaber+Fields!5e0!3m2!1sen!2sus!4v1490796727751", "flyerUrl": "https://www.facebook.com/events/443169852700136/", "contactEmail": "glenrockholi@gmail.com", "adultCost": 10, "childCost": 5, "transactionFeeCharged": false, "free": false }

kunalkhosla commented 7 years ago

PUT Example: http://localhost:8080/event/2

{ "id": 2, "name": "khosla-event", "description": "khosla-event-description", "startDateTime": null, "endDateTime": null, "maxCapacity": 0, "location": null, "locationURL": null, "flyerUrl": null, "contactEmail": null, "adultCost": 0, "childCost": 0, "transactionFeeCharged": false, "free": true, "createdBy": null, "createdDate": "2017-03-27T18:32:30.301+0000", "updatedBy": null, "updatedDate": "2017-03-27T18:32:30.301+0000", "pinned": false, "_links": { "self": { "href": "http://localhost:8080/event/1" }, "gricEvent": { "href": "http://localhost:8080/event/1" } } }

POST Example: http://localhost:8080/event

{ "name": "khosla-event", "description": "khosla-event-description", "startDateTime": null, "endDateTime": null, "maxCapacity": 0, "location": null, "locationURL": null, "flyerUrl": null, "contactEmail": null, "adultCost": 0, "childCost": 0, "transactionFeeCharged": false, "free": true, "createdBy": null, "createdDate": "2017-03-27T18:32:30.301+0000", "updatedBy": null, "updatedDate": "2017-03-27T18:32:30.301+0000", "pinned": false, "_links": { "self": { "href": "http://localhost:8080/event/1" }, "gricEvent": { "href": "http://localhost:8080/event/1" } } }