Backend
The following are URLs to be used in the app:
http://127.0.0.1:8000/professionals_app/token/login
Required fields
- password
- HTTP_204 - Ok
- auth_token
http://127.0.0.1:8000/professionals_app/users/
Required fields
- username
- phone
- first_name
- last_name
- bio
- user_type
- service
- password
- re_password
- HTTP_201 - SUccessfully created
- HTTP_400 - Bad request Either username exists Passwords dont match All required fields have not been filled
http://127.0.0.1:8000/professionals_app/users/me/
This will return all required fields
Can be used to update a user details. All fields required. Required fields
- username
- phone
- first_name
- last_name
- bio
- user_type
- service
- password
- re_password
- HTTP_200 - Succesful
- HTTP_400 - Bad request Fields required have not been filled
Can be used to update details. With just one single required field. Required fields
- The field you want to update
- HTTP_200 - Succesful
- HTTP_400 - Bad request Fields required have not been filled
http://127.0.0.1:8000/professionals_app/users/resend_activation
Required fields
http://127.0.0.1:8000/professionals_app/token/logout
- HTTP_204 - No content
http://127.0.0.1:8000/professionals_app/userlist/
- HTTP_200 - ok
- Empty array if none
http://127.0.0.1:8000/professionals_app/userlist/user's email
- HTTP_200 - User found
- HTTP_404 - No user
http://127.0.0.1:8000/professionals_app/userlist/service/service_name
- HTTP_200 - User found
- HTTP_404 - No user
http://127.0.0.1:8000/professionals_app/categories/
- HTTP_200 - ok
- Empty array if none
http://127.0.0.1:8000/professionals_app/categories/category_name
- HTTP_200 - Category found
- HTTP_404 - No user
http://127.0.0.1:8000/professionals_app/services
- HTTP_200 - ok
- Empty array if none
http://127.0.0.1:8000/professionals_app/services/category_name
- HTTP_200 - Service found
- HTTP_404 - No service
http://127.0.0.1:8000/professionals_app/services/service name
- HTTP_200 - Service found
- HTTP_404 - No service found
http://127.0.0.1:8000/professionals_app/services/id/< service id >
- HTTP_200 - Service found
- HTTP_404 - No service found
http://127.0.0.1:8000/professionals_app/popular
- HTTP_200 - services found
- Empty array no services
http://127.0.0.1:8000/professionals_app/reviews/reviewees-id
- review
- rating
- reviewee
- HTTP_201 - created
- HTTP_400 - Bad request
- HTTP_200 - ok
- Empty array no reviews
http://127.0.0.1:8000/professionals_app/report/
- complainant_email
- complainant_fname
- complainant_lname
- complain_against = id
- HTTP_201 - created
- HTTP_400 - Bad request
http://127.0.0.1:8000/professionals_app/users/reset_password/
Required
- HTTP_204 - No content
- HTTP_400 - Bad request email not available in the database
http://127.0.0.1:8000/professionals_app/users/set_password
Required
- new_password
- re_new_password
- current_password
- HTTP_204 - No content succesful request.
- HTTP_400 - Bad request Lack of required fields Password not same. Wrong password
You must also be authenticated to access all these APIs except the forgotten password and activation email links. Authentication fields are Email and Password