Skip to content

API Activity tracker item

Anastasiia.Birillo edited this page Mar 11, 2021 · 8 revisions

Table of Contents

Description

The model stores activity-tracker files in the server from the TaskTracker plugin.

Model

Field Type Description
id ObjectId internal MongoDB id
externalAtiId Integer external id
codePath String path for the activity tracker file
createdAt Date created date

The public fields of the activity-tracker-item:

Field Type Description
id Integer external id
codePath String path for the activity tracker file. It can be null
createdAt Date created date

Routes

Create an activity-tracker-item

Route

URL Type Description
/api/activity-tracker-item POST create a new activity-tracker-item in the database

The query body

Parameter Type Description
activitytracker File activitytracker file (in csv format)

Response

The external id of the activity-tracker-item.

A query example using the Postman tool


Get all activity-tracker-items

Route

URL Type Description
/api/activity-tracker-item/all GET get all activity-tracker-items

The query body

Empty body.

Response

List of the activity-tracker-items. Each activity-tracker-item has the public fields of the activity-tracker-item model.


Get the activity-tracker-item

Route

URL Type Description
/api/activity-tracker-item/:id GET get activity-tracker-item by external id

The query body

Empty body.

Response

The public fields of the activity-tracker-item.