SEVING Serwis i Naprawa Maszyn Do Szycia www.seving.pl tel. 604503635

Within this part, we are going to develop brand new APIs which can be needed to generate our Tinder clone

Within this part, we are going to develop brand new APIs which can be needed to generate our Tinder clone

  • /login: have a look at customer’s history and make certain the affiliate can be log in to help you the program, or otherwise not.
  • /users/create: manage a new representative on application.
  • /users/recommend: get the demanded pages. In this application, the recommended users need to pursue specific requirements, for each user, that’s throughout the number, cannot have any coordinating consult on the most recent member. After that, the fresh gender of each and every representative are contrary to the present owner’s gender.
  • /requests/create: would a complement demands anywhere between dos pages.

eight. The fresh new Log in API

The newest log on API are certain to get this new owner’s back ground and you will confirm you to definitely advice. Whether your customer’s information is appropriate, an individual normally get on the applying and you may vice versa. In order to make the log in API, you will want to create the “auth.js” file within the “routes” folder. The full source password of your own login API is present here.

the system is Blog post and request cargo should contain the owner’s email and you may customer’s code. If the customer’s information is good, the latest user’s gender and you can customer’s CometChat uid was came back straight back because a reply object. From that point, a warning content was returned if for example the user’s background is actually not valid. Your own normally reference the newest password snippet below to learn more.

8. An individual API

Which point have a tendency to identify the fresh new APIs to have associate government. Firstly, we have to produce the “pages.js” file in the “routes” folder. It will include a couple API endpoints particularly performing another type of user account, highly recommend pages based on the owner’s gender as well as the CometChat uid. (więcej…)