{"size": 508, "ext": "js", "max_stars_repo_path": "src/services/ProjectService.js", "max_stars_repo_name": "TU-Munich/endorse-dashboard", "max_stars_repo_stars_event_min_datetime": "2019-08-24T01:39:14.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-24T01:39:14.000Z", "max_issues_repo_path": "src/services/ProjectService.js", "max_issues_repo_name": "TU-Munich/endorse-dashboard", "max_issues_repo_issues_event_min_datetime": "2019-02-08T20:34:18.000Z", "max_issues_repo_issues_event_max_datetime": "2019-02-13T11:45:57.000Z", "max_forks_repo_path": "src/services/ProjectService.js", "max_forks_repo_name": "TU-Munich/endorse-dashboard", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 33.8666666667, "max_line_length": 103, "alphanum_fraction": 0.7401574803}
import HttpService from "./HttpService";
import config from "../config";

export default class ProjectService {
  static endorseNLPService = new HttpService(config.nlpServiceBaseUrl, 'application/json', '', '', '');
  static projectsEndpoint() { return '/generic/projects-index/project' }

  static createProject(newProject) {
    return this.endorseNLPService.post(this.projectsEndpoint(), newProject)
  }

  static getAllProjects() {
    return this.endorseNLPService.get(this.projectsEndpoint(), '')
  }
}