greptilian logo

IRC log for #rest, 2018-05-10

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
08:38 Haudegen joined #rest
17:10 Guest65664 joined #rest
18:15 donofrio_ joined #rest
18:42 saml joined #rest
18:43 saml how do I design API for asynchronous tasks
18:43 saml POST /tasks     GET /tasks/1      PUT /tasks/1
18:43 saml would you implement PUT?  or status update of /tasks/1  would be done in the background and only implement GET?
18:46 asdf yeah i'd have a PUT and the background executor would use it to update the state
18:47 asdf possibly have a 'scope' for your credentials/tokens so that regular users can't update it, etc
18:47 asdf this is because i wouldn't want the executor to touch the database directly, only the API service would be allowed to touch it
18:47 asdf which makes for easier distributing
18:48 asdf (cf. the microservices "each service only has its own datastore" idea)

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/