I want to discuss this, because many pairs of eyes can see better than one pair.
Problem solving can be parallelizable.
POST /sensors/{type}
Create a sensor. Type is the sensor type code from the rules. In T5, it's a single capital letter. It could be whatever.
Request Body:
Traveller5 modifies sensors based on the sensor's technological stage, the mount, and the mount's range. They're all optional.
Response Body:
The calculated stats for the requested sensor.
All of these are required (for T5).
example:
GET /sensors/all
No params.
Response:
Problem solving can be parallelizable.
POST /sensors/{type}
Create a sensor. Type is the sensor type code from the rules. In T5, it's a single capital letter. It could be whatever.
Request Body:
Traveller5 modifies sensors based on the sensor's technological stage, the mount, and the mount's range. They're all optional.
Code:
stage (optional): enum (Exp | Pro | Ear | Bas | Std | Imp | Mod | Adv | Ult)
mount (optional): enum (T1 | T2 | T3 | T4 | B1 | B2)
range (optional): enum (Vl | D | Vd | Or | Fo | G | BR | FR | SR | AR | LR | DS)
Response Body:
The calculated stats for the requested sensor.
All of these are required (for T5).
example:
Code:
{
"type":"N",
"name":"Neutrino Detector",
"label":"AR T1 Neutrino Detector-10",
"stage":"Std",
"mount":"T1",
"range":"AR",
"tl":10,
"tons":1,
"mcr":1.2
}
GET /sensors/all
No params.
Response:
Code:
{
"A": {
"type": "A",
"name": "Activity Sensor",
"tl": 11,
"mcr": 0.1,
"class": "W"
},
"C": {
"type": "C",
"name": "Communicator",
"tl": 8,
"mcr": 1,
"class": "S"
},
"E": {
"type": "E",
"name": "EMS",
"tl": 12,
"mcr": 1,
"class": "S"
},
"G": {
"type": "G",
"name": "Grav Sensor",
"tl": 13,
"mcr": 1,
"class": "S"
},
"H": {
"type": "H",
"name": "HoloVisor",
"tl": 18,
"mcr": 1,
"class": "S"
},
...etc etc...
}
Last edited: