ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

Auto-generated API documentation is not rendered for properties endpoints #33

Closed mdorf closed 7 years ago

mdorf commented 7 years ago

Currently, the API documentation generator maps the name of the controller (properties_controller.rb) to the original class that represents it. In this case, the class name becomes "LinkedData::Models::Property", which does not exist.

In fact, there is no one-to-one mapping for properties. Each property type is represented by its own class:

LinkedData::Models::ObjectProperty
LinkedData::Models::DatatypeProperty
LinkedData::Models::AnnotationProperty

Because the one-to-one mapping is absent, the documentation is not generated.