API
This is a little challenging and not an insignificant amount of steps. HOWEVER, it’s very cool, we could now make the data we use accessible by API to the general public! This might be a great way to promote accessiblity of Mono Lake data.
Check out the APIS.py file in the mld app and the urls.py as well. We’ll get around to writing more here. Practically speaking, it’s not too hard:
We’re using the django-rest-framework
Each API requires a API Definition and Serializer. Both can be copied from APIS.py. Read the documentation to modify both, but there’s a ton of documentation.
Once the classes are created in the APIS.py file, add them to URLS just like the other API’s.
That should be it.