LamTechConsult / obizr

0 stars 1 forks source link

Claim business #17

Open click2tman opened 7 years ago

click2tman commented 7 years ago

Make sure Claim business is working 100%

What is Claim Business? Claim business is a form that is submitted by a user who wish to become the author of business listed in the platform. Each business is a node. A node in Drupal is simply a page or piece of content with a URL to access it. An Example node is http://slbr.sl/kakua/nenneh-haja-walliya-restaurant. Each node in a business with its address, description and location information. When a user claim a business and their claim is approved, they become the author or owner of the business in the platform and the platform sends email notifications to this user. When this user clients on my businesses, they will see this node listed because they are the owner. To process to claim business in the mobile app starts when the user is viewing the business detail page at http://localhost:8100/#/app/businessDetails/31398 where 31398 is the node ID of the business with title "LAMTECH Consulting Enterprises". When the user clicks on Claim Business and land on http://localhost:8100/#/app/claimBiz/31398 the form to submit the claim, You will ask them to enter data for the field "field_claim_message" and you will prepopulate the values for the other fields;

Make an API Post call to create the entity on behalf of the user. The Claim business form will have one main fields for the end user to enter data;

POST APIs

You can see the full API definitions at

An example was created and you can check this at http://slbr.sl/api/v1/entity_obizr_backend/4 to see how it looks.

Example Json Below id: "4" type: claim_business uid: "1" created: "1484006132" changed: "1485470126" title: Abdul Jalil Islamic Primary School field_user_nick_name: und:

screen shot 2017-01-26 at 5 30 48 pm

stevesolanki77 commented 7 years ago

please provide the api url for this to check. the existing url is incorrect

click2tman commented 7 years ago

After successfully adding a claim business, you can check at http://slbr.sl/admin/structure/entity-type/obizr_backend/claim_business to see your claim.

stevesolanki77 commented 7 years ago

can you please provide an admin username and password to check. when logging in as a normal user it's showing access denied

click2tman commented 7 years ago

Your account steve.solanki14 is an administrator account. You can login at http://slbr.sl/user/login or visit http://slbr.sl/user/password to reset your password. Once you reset your password, login with this account in mobile app and in backend.

stevesolanki77 commented 7 years ago

fix with 291f1bb65c7a56fd23ca50019a84eaefb3fa3f91

stevesolanki77 commented 7 years ago

we need more clarity on what id and uuid are specifying

stevesolanki77 commented 7 years ago

sadfas

we are having authentication problem due to https. so our POST requests aren't going to the server. please check this so that we can check if the POST requests are successful.

stevesolanki77 commented 7 years ago

we are facing 401 unauthorized access issue.

click2tman commented 7 years ago

Please check the previous code and ensure you are using the same authentication method and are sending the correct values. Take a look at https://www.drupal.org/project/services_entity and https://www.drupal.org/node/2134143 and UUIDs are auto generated by Drupal. Entity ID is also auto-generated.

stevesolanki77 commented 7 years ago

9ef192547e73874da28fb2c6738832eca414c1ce tested fully and closed with this commit