Skip to content

Commit

Permalink
doc: adds apis_history to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed Mar 21, 2024
1 parent 3c8b91a commit 5b0f8f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ In standard APIS those models are
* :class:`apis_core.collections.models.SkosCollection`
* :class:`apis_core.collections.models.SkosCollectionContentObject`

The :py:mod:`apis_core.apis_history` module also uses the generic views for
its models. This means that you can use the generic views for the historical
models of your own ontology. E.g. if you have a model ``Person`` in your
`apis_ontology.models` module, you can use the generic views for it.
`/apis/apis_ontology.historicalperson/</apis/apis_ontology.historicalperson/>`_
will be the URL for the list view of the historical model.
`/apis/api/apis_ontology.historicalperson/</apis/api/apis_ontology.historicalperson/>`_ for the API view.

If you want to use the generic app for your own model, simple make your model
inherit from :class:`apis_core.generic.abc.GenericModel`.

Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Welcome to APIS's documentation!
settings
customization
user_documentation
apis_history
data_model
glossary
development
Expand Down

0 comments on commit 5b0f8f3

Please sign in to comment.