-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev: API Needs & Donations #73
base: dev
Are you sure you want to change the base?
Conversation
why don't we go with Laravel passport for API! we need to secure the endpoints! if there is a authentication part in future, it is the best way i think. also we have oAuth support to secure API!! |
Hi @Chathula, I think, at the movement its need to fast dev: So let's make this fast as we can. |
Can we get some sort of a api doc? |
@THPubs, I'll send a google doc asap bro. |
You can use this service for your API doc. https://apiary.io/ |
Hi guys, https://docs.google.com/document/d/1uQhqUhnAOYXzezLuMXyOpLdLNpzq5uC8UKT5ZKK1dbw/edit?usp=sharing Please use this when my API code merges to the master branch and deploy it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% on this, we already seem to have some changes that are basically the Donations API sitting under the namespace App\Http\Controllers\Api\V1
which is being used by the bot already. Please check the Gitter chat room if any of this work is duplicate and cross check against the existing endpoints. If all is good ping us and we can do a final review and get this merged in.
Hi, @gayanhewa |
@pradeep-rajapaksha Few clarifications. The API doesn't seem to identify resources based on a unique ID. Is the document up to date? Since #46 is adding a unique ID for the entries shouldn't this API reflect that as well? Furthermore,
|
@chamilad
Some of the mobile devs (Who I've met) do not use exact error status code in exceptions handling. They use only when an exception is true for the request success. Otherwise error. That's why/what I have done here and please put your suggestions. It'll improve me. 👍 |
@pradeep-rajapaksha Maybe what I have in mind doesn't directly map in this scenario. If that is the case, do forgive for digging deep :) So as a dev, I'd like to first add a new donation record. So I'd do a
I understand the point on devs not relying on too granular error codes, however, an API being just that cannot be changed frequently IMO. Otherwise, any changes to the API later would have to roll out new apps as well. So we might need to figure out the little details first, although, given the urgency of the situation, these could be looked over if others agree. WDYT? |
@chamilad When If any standard we can define for this, I can update the API asap. |
+1 to send |
@chamilad, I got you! And made some changes. ;) |
Thanks! Shall we update the API doc as well? LGTM API wise for now. 👍 |
No description provided.