coherence icon indicating copy to clipboard operation
coherence copied to clipboard

REST and JSON

Open claudiojulioferraz opened this issue 8 years ago • 17 comments

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.

claudiojulioferraz avatar Jul 28 '16 00:07 claudiojulioferraz

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 👍

smpallen99 avatar Jul 28 '16 00:07 smpallen99

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

mayur-patel avatar Sep 09 '16 11:09 mayur-patel

Would love this too 💯

deini avatar Oct 10 '16 15:10 deini

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

changalberto avatar Dec 16 '16 10:12 changalberto

++

insiderq avatar Dec 25 '16 04:12 insiderq

Does anyone has tried to implement a JSON way with Coherence ?

pyladune avatar Dec 31 '16 08:12 pyladune

@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)

insiderq avatar Dec 31 '16 12:12 insiderq

@pyladune Would be helpful if I had an example application to test with.

smpallen99 avatar Dec 31 '16 22:12 smpallen99

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.

pyladune avatar Dec 31 '16 22:12 pyladune

Sounds perfect.

smpallen99 avatar Dec 31 '16 23:12 smpallen99

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.

tierralibre avatar Jan 01 '17 07:01 tierralibre

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 avatar Jan 01 '17 15:01 pyladune

@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.

smpallen99 avatar Jan 02 '17 18:01 smpallen99

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.

pyladune avatar Jan 10 '17 08:01 pyladune

Hi Steve, How to help on that ?

pyladune avatar Jan 16 '17 12:01 pyladune

@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.

abhinavzspace avatar Jan 20 '17 04:01 abhinavzspace

I would also be very interested in this feature and willing to help implement this.

chriserik avatar Jan 22 '17 17:01 chriserik