WeConnect provides a platform that brings businesses and individuals together. This platform creates awareness for businesses and gives the users the ability to write reviews about the businesses they have interacted with.
The API has been built with:
- Flask micro-framework (Python 3.6)
- To preview the UI, proceed to https://alexmochu.github.io .
- The UI Templates have been hosted on Github Pages
- Access the API documentation at "https://weconnectapiv1.docs.apiary.io/#"
- Users can be able to register and create an account
- Registered users can be able to log in
- Once logged in, the user can create a business
- Each business created can has an ID and a unique business name
- Logged in users can query all businesses or a single business by its ID
- Only logged in users have the privilege of creating and viewing businesses
- Ensure you have installed Python3.6+, created and an activated a virtual environment.
- Clone the repo in your local machine inside the virtual environment you have created.
- Navigate to the project folder(WeConnect-API-oop-)
- Install all the requirements of the project by typing:
pip install -r requirements.txt
- Type:
export FLASK_APP=run.py
flask run
- Install Pytest :
pip install pytest
- Run tests:
py.test
Resource URL | Methods | Description |
---|---|---|
/api/v1/auth/register | POST | User Registration |
/api/v1/auth/login | POST | User Login |
/api/v1/auth/reset-password | POST | User can be able to reset password |
/api/v1/auth/logout | POST | Logs out User |
/api/v1/business | POST | Create a business with unique ID and business name |
/api/v1/business | GET | Retrive all business created |
/api/v1/business/<business_id> | GET | Retrive a business by ID |