The code snippet above is taken from "girder/molecules/molecules/molecule.py" in the server repository, and shows an abbreviated version of the Molecule endpoint. The server can be extended with new endpoints such as this, where routes are added, and the capabilities of the underlying model can be exposed. Decorators define the access level required, for example "public" in this case for unauthenticated access, or "user" to indicate a user must be logged in. The model interacts with the database to find, update, delete, and amend records, providing an object-relational mapping (ORM)  to map from the RESTful API to the underlying data representation.