---
# System prepended metadata

title: Jendamark API Spec

---

# Jendamark API Spec

## Login

POST /users/login

Request

``` json
{
    "email": "email",
    "password": "password"
}
```

Response

```json
{
    "token": "jwt token"
}
```

## Get Line Listing

GET /internal/lines

``` json
{
    "success": true,
    "lines": [
        {
            "id": "e35912ad-f25e-4f06-bc84-d906c69bf509",
            "description": "Freight and logistics",
            "projectId": "532da7c5-e4e5-4cd0-96e7-6f8a204792b1",
            "number": "10000000",
            "costCentreType": "LINE",
            "positionX": null,
            "positionY": null,
            "project": {
                "projectNumber": "A1408",
                "company": {
                    "name": "Mercedes"
                }
            }
        }
    ]
}
```

## Get Line Details


GET /internal/lines/:id


```json
{
    "success": true,
    "line": {
        "id": "e35912ad-f25e-4f06-bc84-d906c69bf509",
        "description": "Freight and logistics",
        "projectId": "532da7c5-e4e5-4cd0-96e7-6f8a204792b1",
        "number": "10000000",
        "costCentreType": "LINE",
        "positionX": null,
        "positionY": null,
        "project": {
            "projectNumber": "A1408",
            "company": {
                "name": "Mercedes"
            }
        }
    },
    "imagePath": "https://available-jms-documentation.s3.ap-south-1.amazonaws.com/A1408/8.%20Rendered%20Images/A1408%2310000000%20Line%20Layout.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA4CPBNTY34BZJZL7Z%2F20191112%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20191112T081858Z&X-Amz-Expires=3600&X-Amz-Signature=9ccd93aed7d5d8aee5c8ad19e0cc281b546fa3831b9a2e4ecae0b70dffa5c965&X-Amz-SignedHeaders=host",
    "facilities": [
        {
            "id": "465d93ab-98e2-43d1-8280-3da828f01b6a",
            "description": "Shrinker Segments",
            "projectId": "532da7c5-e4e5-4cd0-96e7-6f8a204792b1",
            "number": "10000101",
            "costCentreType": "FACILITY",
            "positionX": null,
            "positionY": null,
            "project": {
                "projectNumber": "A1408",
                "company": {
                    "name": "Mercedes"
                }
            }
        },
        {
            "id": "9a98c733-9f68-49a2-bf00-e5afc45e901a",
            "description": "End form up tool",
            "projectId": "532da7c5-e4e5-4cd0-96e7-6f8a204792b1",
            "number": "10000401",
            "costCentreType": "FACILITY",
            "positionX": null,
            "positionY": null,
            "project": {
                "projectNumber": "A1408",
                "company": {
                    "name": "Mercedes"
                }
            }
        },
        {
            "id": "adab02b6-7379-4284-88c3-a4635d2df727",
            "description": "Shrinker puck",
            "projectId": "532da7c5-e4e5-4cd0-96e7-6f8a204792b1",
            "number": "10000201",
            "costCentreType": "FACILITY",
            "positionX": null,
            "positionY": null,
            "project": {
                "projectNumber": "A1408",
                "company": {
                    "name": "Mercedes"
                }
            }
        }
    ]
}
```

## Get Folder Listing 

POST /internal/folder/listing

Request 

```json
{
	"path": "A1408/"
}
```

Response 

```json
{
    "success": true,
    "data": {
        "folders": [
            {
                "key": "A1408/0. Drawing Numbers & Cost Centers Register/"
            },
            {
                "key": "A1408/1. Mechanical Designs/"
            },
            {
                "key": "A1408/2. Controls Designs/"
            },
            {
                "key": "A1408/3. Risk Assessment & Safety/"
            },
            {
                "key": "A1408/4. Instruction Manuals/"
            },
            {
                "key": "A1408/5. EC Declaration of Conformity/"
            },
            {
                "key": "A1408/6. Technical Reports/"
            },
            {
                "key": "A1408/7. Tooling Change Over Procedure/"
            },
            {
                "key": "A1408/8. Rendered Images/"
            },
            {
                "key": "A1408/9. Line Layout/"
            },
            {
                "key": "A1408/A1408 (1)/"
            }
        ],
        "files": [
            {
                "key": "A1408/",
                "modified": "2019-11-11T07:40:55.000Z"
            },
            {
                "key": "A1408/Technical File Checklist - Machine Name.docx",
                "modified": "2019-11-11T11:37:05.000Z"
            }
        ]
    }
}
```

## Get Asset Paths

GET /internal/folder/lineId

```json
{
    "success": true,
    "assets": [
        {
            "id": "28b5fdfa-b423-4ccf-99ee-01697b64f284",
            "createdAt": "2019-11-11T17:19:14.000Z",
            "updatedAt": "2019-11-11T17:19:14.000Z",
            "name": "General Information",
            "path": "A1408",
            "iconSource": null,
            "order": 1,
            "mode": "LINE",
            "assetType": "FILE"
        },
        {
            "id": "4f048280-fafa-453e-83f0-ba68deb52e01",
            "createdAt": "2019-11-11T17:19:14.000Z",
            "updatedAt": "2019-11-11T17:19:14.000Z",
            "name": "Instruction Manual",
            "path": "A1408_10000000",
            "iconSource": null,
            "order": 2,
            "mode": "LINE",
            "assetType": "FILE"
        },
        {
            "id": "ae4e2254-11e0-48c5-b734-676be44ab443",
            "createdAt": "2019-11-11T17:19:14.000Z",
            "updatedAt": "2019-11-11T17:19:14.000Z",
            "name": "Technical Report",
            "path": "10000000*/A1408_10000000",
            "iconSource": null,
            "order": 3,
            "mode": "LINE",
            "assetType": "FILE"
        }
    ]
}
```