GET /api/elements HTTP/1.1
[
{
"id": 1,
"name": "Oxygen",
"atomicNumber": 8
},
{
"id": 2,
"name": "Carbon",
"atomicNumber": 6
}
]
{
"name": "HELIUM",
"atomicNumber": 2
}
{
"id": 3,
"name": "HELIUM",
"atomicNumber": 2
}
GET /api/elements/3 HTTP/1.1
{
"id": 3,
"name": "HELIUM",
"atomicNumber": 2
}
{
"id": 3,
"name": "HELIUM",
"atomicNumber": 20
}
{
"name": "Helium",
"atomicNumber": 2
}
{
"id": 3,
"name": "Helium",
"atomicNumber": 2
}
DELETE /api/elements/3 HTTP/1.1
POST /api/elements/:id/actions
{
"type": "RAISE_CONCENTRATION",
"payload": {
"percentage": 20
}
}