evrimagaci / periodum-api

A database that compiles tons of information about elements and compounds.
https://periodum.com
Open Software License 3.0
19 stars 10 forks source link

Elements Endpoint #20

Closed nesimtunc closed 2 years ago

nesimtunc commented 2 years ago

/elements will return a list of preview model of elements /elements/:id will return the element model - Will return 404 when element not found

Preview Model Example:


{
  "data": [
    {
      "number": 1,
      "name_tr": "Hidrojen",
      "ypos": 1,
      "xpos": 1,
      "symbol": "H",
      "atomic_mass": "1.008",
      "boil_use": "20.271",
      "melt_use": "13.99",
      "block": "s",
      "category": "reaktif ametal",
      "geochemical_class": "Uçucu"
    }
  ]
}

Closes #19