api

An example API view is ActivityLogViewSet, https://gitlab.com/kb/api/blob/master/api/views.py

The router for this API view is here, https://gitlab.com/kb/api/blob/master/example_api/urls.py

Testing

The api app has a test fixture called api_client.

An example of usage can be found here, https://gitlab.com/kb/api/blob/master/api/tests/test_api.py