Line types available for the project, served from /new_api/projects/{projectId}/line_types/. Every line type is described by the dash pattern that should be used when drawing it.

1. List line types

Each line type maps a name (SOLID, DASHED, DOTTED, DASH_DOT, DASH_DOT_DOT) to the dash pattern used to draw it, given as alternating lengths of drawn and skipped segments; SOLID has an empty pattern. Reactions and element borders reference these names instead of carrying the pattern themselves.

1.1. HTTP request

GET /minerva/new_api/projects/empty/line_types/ HTTP/1.1

1.2. Path Parameters

Table 1. /minerva/new_api/projects/{projectId}/line_types/
Parameter Description

projectId

project identifier

1.3. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/empty/line_types/' -X GET

1.4. HTTP response

HTTP/1.1 200 OK

1.5. Response Fields

Path Type Description

[]

Array

list of line types supported by the project

[].name

String

name of the line type

[].pattern

Array

dash pattern of the line, as a list of segment lengths

1.6. Sample Response

[ {
  "name" : "SOLID",
  "pattern" : [ ]
}, {
  "name" : "DASH_DOT_DOT",
  "pattern" : [ 11.0, 3.0, 1.0, 3.0, 1.0, 3.0 ]
}, {
  "name" : "DASH_DOT",
  "pattern" : [ 11.0, 3.0, 1.0, 3.0 ]
}, {
  "name" : "DASHED",
  "pattern" : [ 8.0, 8.0 ]
}, {
  "name" : "DOTTED",
  "pattern" : [ 2.0, 5.0 ]
} ]