SEVING Serwis i Naprawa Maszyn Do Szycia tel. 604503635

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. A complete fouce password can be obtained right here.

New Perform User API

Within this part, we’ll generate an enthusiastic API to produce an alternate account in the application brud bulgariska form. New API can get the brand new lower than information. The system is Blog post and we’ll publish the proper execution data style about consumer front side in addition to consult will be hold the owner’s email, owner’s password, owner’s ages, owner’s gender, owner’s avatar, user’s name, and you may user’s CometChat uid.

The new API is always to check the type of the fresh new avatar photo. Contained in this software, i let the associate so you’re able to upload a photograph having jpeg structure. At exactly the same time, the aforementioned info is requisite. For individuals who miss some thing about consult payload, an alert content will be came back back regarding impulse. Also, brand new API often check the owner’s current email address has been utilized when you look at the the program, or perhaps not. Whether it resided regarding program, a warning content would be gone back to enhance an individual on one. You can refer to brand new lower than password snippet to find out more.

The brand new Suggest Users API

With respect to the standards, we should instead manage to own users to consider other member-users and both deal with or refuse (swipe). And that, we’re going to generate an API so you can strongly recommend profiles and feature the newest selection of necessary profiles to the UI. Within this app, a consumer might be required if that user must not possess any complimentary demand with the latest representative. From there, this new gender of every representative will likely be reverse to the current owner’s gender. An entire origin password can be acquired here.

nine. New Match Consult API

So it area often describe new APIs to have controlling the coordinating requests. Regarding the application, if your newest associate loves another person’s profile, the current representative can be swipe right otherwise click the heart symbol. To begin with, we have to produce the “desires.js” document inside “routes” folder. It can incorporate an API endpoint and is also on the doing a different sort of coordinating demand. An entire source code is available here.


Trzydzieści lat: naprawa maszyn do szycia i urządzeń precyzyjnych.

0 komentarzy

Dodaj komentarz

Avatar placeholder

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *