/Final-Project1

Final project 1 kampus merdeka

Primary LanguageJavaScript

Installation node_modules

install

Running app

running

Documentation of endpoint

  • POST /api/v1/users/register : for register user (this endpoint for create new user)
    register

  • POST /api/v1/users/login : for login user (if user data is correct, it will return token)
    login

  • POST /api/v1/users/reflections : for create data user (in headers.authorization user must input token for create new data reflection)
    headers_token create_reflection

  • GET /api/v1/users/reflections : for get data user (if user have data reflection, it will return it)
    get_reflection

  • PUT /api/v1/users/reflections/:id : for edit data user (if you have token in headers.authorization, to change data reflection user must input reflectionid in parameters)
    edit_reflection

  • DELETE /api/v1/users/reflections/:id : for delete data user (if you have token in headers.authorization, to delete data reflection user must input reflectionid in parameters)
    delete_reflection