Size: a a a

2017 November 02

А

А in Peer Lab SPB
yes i will date limit later
источник

DP

Denis Podlesnykh in Peer Lab SPB
Great 👍
источник

А

А in Peer Lab SPB
when i will load data from my api
источник

А

А in Peer Lab SPB
i just start this from 0 and i am very young in swift work i am realy happy i got swift group   in my city where i live :)
источник

А

А in Peer Lab SPB
i am working from morning 8 till 23:00 every day :) now
источник

А

А in Peer Lab SPB
will continue more 2/3 months
источник

DP

Denis Podlesnykh in Peer Lab SPB
I can’t see your data types for DB table. Do they generate automatically in the Postgres-StORM?
источник

А

А in Peer Lab SPB
and lots of things i dont know thats making lots of mistake too :)
источник

А

А in Peer Lab SPB
yes
источник

А

А in Peer Lab SPB
источник

DP

Denis Podlesnykh in Peer Lab SPB
When you are creating a new channel in response you are returning dataset of channels. I think we should send the status (success/fail) of saving data in the response, not a collection. For collections requests we should use GET methods (in your case it’s a /api/v1/active_hangout_channels)
источник

А

А in Peer Lab SPB
its get
источник

А

А in Peer Lab SPB
источник

DP

Denis Podlesnykh in Peer Lab SPB
In the createHangoutChannel, after data saving what do you answer in the response?
источник

А

А in Peer Lab SPB
try response.setBody(json: hangoutChannels).setHeader(.contentType, value: "application/json").completed()
источник

DP

Denis Podlesnykh in Peer Lab SPB
In this case hangoutChannels set is a result of database selection, right?
источник

А

А in Peer Lab SPB
i think yes
источник

DP

Denis Podlesnykh in Peer Lab SPB
So for this post request in response we answer a collection of channels. It’s not a good way because usually we wait for some successful status or error code/description
источник

DP

Denis Podlesnykh in Peer Lab SPB
If we save successfully we’ll return as example status code 200
источник

DP

Denis Podlesnykh in Peer Lab SPB
Without data set
источник