Open pauljanes opened 9 years ago
I did a log to console of the results I get back from Jasify, and I see the activity type name which is good.
But in terms of the provider, I only know the code - in this case O30002 which is No Excuses Zurich. Rather than on my site having to have a hardcoded set of translations from org codes to the org name, could you also pass back the org name as well as the code please.
{"id":"A1210001-O30002","start":"2015-06-26T05:00:00.000Z","finish":"2015-06-26T06:00:00.000Z","price":35,"activityType":{"id":"AT1090001-O30002","name":"07.00 TRX Bootcamp","organizationId":"O30002","price":35,"currency":"CHF","location":"Holmes Place Zurich, Seidengasse 1, 8001 Zurich","maxSubscriptions":25},"currency":"CHF","location":"Holmes Place Zurich, Seidengasse 1, 8001 Zurich","maxSubscriptions":25,"subscriptionCount":0,"description":"No Excuses Bootcamp in Zurich is fast-paced circuit training, performing one high intensity exercise for between 30 and 60 seconds, with 30 seconds rest, before moving to another. This combines fat burning with building muscle and core strength, creating excellent all round fitness. Classes last 1 hour and no 2 classes are ever the same – which keeps them fun.","bookItUrl":"https://jasify-schedule.appspot.com/book-it.html#/A1210001-O30002","kind":"jasify#activitiesItem"}
Replaces #157 and #217
Once labels are implemented, mywayfit will query by label and expect back a list of activities matching tagged with that label. But it will have no clue the name of the activity or the organisation that is offering that activity. So in the search results of querying by label, mywayfit needs to receive for each result the organisation name and activity name, as well as the activity details such as description, price, location, places available, start datetime and end datetime.