coherence
coherence copied to clipboard
REST and JSON
Hello! How can I configure this software to use only work with JSON? It would be nice if there were generators for the way "--no-html". I'm new in the programming world.
Automatically Translated.
I have not looked at pure json. If you install with the --no-views --no-templates --controllers, you should be able to modify the controllers for json. I'll take a look at this sometime in the future unless someone submits a PR 👍
I am also thinking of using this for one of the web project. I am planning to have both web interface and JSON API for mobile devices. Is Coherence can be used for authenticating JSON API call from the mobile devices? Thanks in advance.
Kind regards
Would love this too 💯
Would be nice to have something like this for mobile devices:
method | path | description |
---|---|---|
POST | /api/users | register |
POST | /api/users/:id/confirm | confirm account |
POST | /api/users/:id/invited | set password on invited account |
POST | /api/sessions | login, will return a token as JSON |
DELETE | /api/sessions | logout, invalidated the users current authentication token |
POST | /api/password_resets | request a reset-password-email |
POST | /api/password_resets/reset | reset a password |
GET | /api/account | get information about the current user. at the moment this includes only the email address |
PUT | /api/account | update the current users email or password |
++
Does anyone has tried to implement a JSON way with Coherence ?
@pyladune i need to get this done till the January 7, will write back here. By now i understand how to do that, but if you have some ideas on how to make this better please share them)
@pyladune Would be helpful if I had an example application to test with.
Hi,
I can provide an app where I implemented guardian and home made functions to do the job of coherence. Wish to replace theses functions by a code most trustble because much more used. Would this be a good enough example to test ?
Seb
On 31. 12. 16 23:22, Steve Pallen wrote:
@pyladune https://github.com/pyladune Would be helpful if I had an example application to test with.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/smpallen99/coherence/issues/21#issuecomment-269883951, or mute the thread https://github.com/notifications/unsubscribe-auth/AB90flINdLNVdcFwly24orhOfPpF0d-Gks5rNtWqgaJpZM4JWv5y.
Sounds perfect.
First thank for this work!
Guardian + Sentinel I think is a good example of coherence for API.
Happy 2017! :)
On 31 Dec 2016, at 23:28, Steve Pallen [email protected] wrote:
Sounds perfect.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
is sentinel based om coherence ?
However seems much less maintained than your source.
does a read only access to my repo would be fine for you to test ?
On 01. 01. 17 08:58, TierraLibre wrote:
First thank for this work!
Guardian + Sentinel I think is a good example of coherence for API.
Happy 2017! :)
On 31 Dec 2016, at 23:28, Steve Pallen [email protected] wrote:
Sounds perfect.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/smpallen99/coherence/issues/21#issuecomment-269895159, or mute the thread https://github.com/notifications/unsubscribe-auth/AB90fhiFvf3aiYu6N7khroKMlCKHh-Nzks5rN1yjgaJpZM4JWv5y.
@pyladune sentinel was created much earlier than coherence. This is the first time I've looked at it, so no relationship at all. Yes, read only access to your repo would be fine. I'll start by reviewing it and my make a local clone or some testing.
I'm working on a very major change to coherence to support multiple user models and umbrella projects. Once I have finished that, I'll start to look at this.
Hi Steve,
Just to check if you had been able to start the API/JSON feature for coherence.
when you need it, I keep my repo as your disposal. As repo is not github hosted, do you have a email to create you an access ?
Cheers
Seb
On 02. 01. 17 19:33, Steve Pallen wrote:
@pyladune https://github.com/pyladune sentinel was created much earlier than coherence. This is the first time I've looked at it, so no relationship at all. Yes, read only access to your repo would be fine. I'll start by reviewing it and my make a local clone or some testing.
I'm working on a very major change to coherence to support multiple user models and umbrella projects. Once I have finished that, I'll start to look at this.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/smpallen99/coherence/issues/21#issuecomment-270006232, or mute the thread https://github.com/notifications/unsubscribe-auth/AB90flOu55S0lUAf15qQt5bzgloQIy7eks5rOUMBgaJpZM4JWv5y.
Hi Steve, How to help on that ?
@insiderq were you able to implement this? If yes, can you please share some ideas? I am new to phoenix/elixir world and not able to get it working. There must be more people looking for a solution.
I would also be very interested in this feature and willing to help implement this.