Skip to content

BritneyParkerson/african-market-personal-BE-repo

Repository files navigation

african-market-personal-BE-repo

My project for African Market Place Backend for Build Week Unit 4. I created this project due to some unresolved conflicts in the code of the collaborated project files.

Welcome to back-end 👋

Version Documentation Maintenance License: ISC

Install

npm install

Development

npm run server

Usage

npm run start

Run tests

npm run test

End Points

Users

POST - new user - base-url/api/auth/register

For registration:

{
    "username": "testusername",
    "email": "[email protected]",
    "password": "password"
}

POST - login user - base-url/api/auth/login

Login:

{
    "username": "testusername",
    "password": "password"
}

GET - specific user - base-url/api/users/:id

{

}

PUT - update specific user - base-url/api/users/:id

{
}

DELETE - delete specific user - base-url/api/users/:id

{
}

Products

GET - all products - base-url/api/users/:id/products

{
}

GET - specific product - base-url/api/products/:id

{
}

PUT - update specific product - base-url/api/products/:id

{
}

DELETE - delete specific product - base-url/api/products/:id

{
}

Categories

POST - add new category- base-url/api/categories

{
  "id": 1,
  "category_name": "Test Category"
}

GET - all categories - base-url/api/categories

{
  "id": 1,
  "category_name": "Animal Products - Livestock"
}

GET - specific category - base-url/api/categories/:id

{
}

PUT - update specific category - base-url/api/categories/:id

{
}

DELETE - delete specific category - base-url/api/categories/:id

{
}

Author

👤 Britney Parkerson

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

📝 License

Copyright © 2020 Britney Parkerson.
This project is ISC licensed.

About

My side project for African Market Place Backend for build week

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published