Skip to content

Skinifier/Cloud-Computing

Repository files navigation

Cloud Computing

Users

Register User

URL: /register Method: POST Description: Register a new user. Request Body: { "email": "string", "username": "string", "fullname": "string", "no_hp": "string", "skin_type": "string", "password": "string" }

Login User

URL: /login Method: POST Description: Login a user. Request Body: { "email": "string", "password": "string" }

Get User Profile

URL: /users Method: GET Description: Get the authenticated user's profile. Headers: Authorization: Bearer

Update User Profile

URL: /users Method: PUT Description: Update the authenticated user's profile. Headers: Authorization: Bearer Request Body (Form Data): foto: File Other profile fields as needed.

Barang

Get All Barang

URL: /barang Method: GET Description: Get all barang. Headers: Authorization: Bearer

Get Barang By User

URL: /barang/users Method: GET Description: Get all barang added by the authenticated user. Headers: Authorization: Bearer

Get Barang By ID

URL: /barang/:id Method: GET Description: Get barang by ID. Headers: Authorization: Bearer

Add Barang

URL: /barang Method: POST Description: Add new barang. Headers: Authorization: Bearer Request Body (Form Data): foto: File[] (up to 2 files) Other barang fields as needed.

Update Barang

URL: /barang/:id Method: PUT Description: Update barang by ID. Headers: Authorization: Bearer Request Body (Form Data): foto: File[] (up to 2 files) Other barang fields as needed.

Delete Barang

URL: /barang/:id Method: DELETE Description: Delete barang by ID. Headers: Authorization: Bearer

Wishlist

Add Wishlist

URL: /wishlist Method: POST Description: Add new wishlist item. Headers: Authorization: Bearer Request Body: { "barangId": "string" }

Get Wishlist

URL: /wishlist Method: GET Description: Get all wishlist items for the authenticated user. Headers: Authorization: Bearer

Delete Wishlist Item

URL: /wishlist/:id Method: DELETE Description: Delete a wishlist item by ID. Headers: Authorization: Bearer

Articles

Add Article

URL: /articles Method: POST Description: Add new article. Request Body (Form Data): foto: File Other article fields as needed.

Get All Articles

URL: /articles Method: GET Description: Get all articles. Headers: Authorization: Bearer

Get Article By ID

URL: /articles/:id Method: GET Description: Get article by ID. Headers: Authorization: Bearer

Update Article

URL: /articles/:id Method: PUT Description: Update article by ID. Request Body (Form Data): foto: File Other article fields as needed.

Delete Article

URL: /articles/:id Method: DELETE Description: Delete article by ID.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •