{"size": 591, "ext": "js", "max_stars_repo_path": "resources/js/services/CourseSubjectService.js", "max_stars_repo_name": "ptrjhn/subject-evaluation", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/services/CourseSubjectService.js", "max_issues_repo_name": "ptrjhn/subject-evaluation", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/services/CourseSubjectService.js", "max_forks_repo_name": "ptrjhn/subject-evaluation", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7307692308, "max_line_length": 70, "alphanum_fraction": 0.6920473773}
import apiClient from '../apiClient'
import { setQueryParams } from '../services/helper'

export default {

  getCoursesSubjects(query) {
    return apiClient.get('/courses-subjects?' + setQueryParams(query))
  },

  getCourseSubject(id) {
    return apiClient.get(`/courses-subjects/${id}`)
  },

  postCourseSubject(courseSubject) {
    return apiClient.post('/courses-subjects', courseSubject)
  },

  deleteCourseSubject(id) {
    return apiClient.delete(`/courses-subjects/${id}`)
  },

  updateCourseSubject(data) {
    return apiClient.put(`/courses-subjects/${data.id}`, data)
  }
}
