ManPhamQuang / COSC2769-rmit

Further web programming - COSC2769
cosc-2769-rmit.vercel.app
MIT License
0 stars 0 forks source link

Feat/update logged in user #85

Closed dangvuthang closed 3 years ago

dangvuthang commented 3 years ago

Changelog

How to test

  1. Start the backend server
  2. Execute on terminal
    curl -X PATCH 'localhost:5000/api/v1/users/updateMe' \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxMTNjOWJkZjAwNWY3MzRhY2NhMTJhOSIsImlhdCI6MTYyOTQzNDEzOCwiZXhwIjoxNjI5NjA2OTM4fQ.x_EwtNZabubz8veJaY44LLnojd_tzAtaI6ba2ZbsGAs' \
    -H 'Content-Type: application/json' \
    -d '{"name": "UPDATE NAME 1", "avatar": "UPDATE IMAGE 1", "description": "WILL NOT APPEAR BECAUSE NORMAL USER 1"}'

    Expected Result