logo

Crowdly

Browser

Додати до Chrome

Analyze the code below extracted from the project/cli client. Choose only the c...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Analyze the code below extracted from the project/cli client.

Choose only the correct answers.

There are 4 correct answers.

Each correct answer adds 25% to the question's grade.

Each wrong answer chosen reduces the question's grade by 25%.

file: project-cli\src\services\ProductDataService.js

  1. import http from '../http-common'
  2. class ProductDataService {
  3.   getAll () {
  4.     return http.get('/product')
  5.   }
  6.   get (id) {
  7.     return http.get(`/product/${id}`)
  8.   }
  9.   create (data) {
  10.     return http.post('/product', data)
  11.   }
  12.   update (id, data) {
  13.     return http.put(`/product/${id}`, data)
  14.   }
  15.   delete (id) {
  16.     return http.delete(`/product/${id}`)
  17.   }
  18. }
  19. export default new ProductDataService()

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.concordia.ca?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome