Skip to content

Commit

Permalink
Remove api v1 (#3845)
Browse files Browse the repository at this point in the history
* Remove API v1

* Remove some more API v1 stuff

* Add some tests

* fix isort broken imports

* Remove unused functions from services

* Update README.md as suggested by dirk

Co-authored-by: Dirk Doesburg <[email protected]>

* Add some extra info to readme

* Remove unnecessary file

---------

Co-authored-by: Dirk Doesburg <[email protected]>
  • Loading branch information
T8902 and DeD1rk authored Nov 15, 2024
1 parent 7c70a27 commit 0bc0bee
Show file tree
Hide file tree
Showing 57 changed files with 26 additions and 2,277 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.organizeImports.isort": "never",
"source.organizeImports": "explicit",
"source.organizeImports.ruff": "explicit",
}
},
"git.branchProtection": [
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ In the future we should register this method in the `apps.py` file of the app, b

#### Versions

We currently have 2 versions of the API.
The first version is the `v1` API, which is the old API.
We used to have 2 versions of the API however `v1` is no longer available.
The first version is the `v1` API, which is the old API and is no longer used.
The second version is the `v2` API, which is the new API that is actively being developed.
The `v1` API is deprecated and will be removed in the future.

#### Swagger documentation

Expand All @@ -104,7 +103,7 @@ This documentation is available at `/api/docs/`.

#### Authentication

`v1` uses token authentication. `v2` uses OAuth2 authentication, which is the new standard for authentication.
The API uses OAuth2 authentication, which is the new standard for authentication.
The OAuth2 authentication is implemented using the `django-oauth-toolkit` package.

#### Throttling
Expand All @@ -113,7 +112,7 @@ The API has throttling enabled.

#### Other (internal) APIs

Apart from the main versions (`v1` and `v2`), we also have a few specific mini-APIs that are used for specific purposes and are not really open to the public.
Apart from the main version (`v2`), we also have a few specific mini-APIs that are used for specific purposes and are not really open to the public.
These are the `calendarjs` and `facedetection` APIs. The `calendarjs` API is only used by the calendar on the website (to query events) and the `facedetection` API is used by the face detection service to post face encodings.

## About concrexit
Expand Down
Empty file.
57 changes: 0 additions & 57 deletions website/activemembers/api/v1/serializers.py

This file was deleted.

7 changes: 0 additions & 7 deletions website/activemembers/api/v1/urls.py

This file was deleted.

22 changes: 0 additions & 22 deletions website/activemembers/api/v1/viewsets.py

This file was deleted.

Empty file.
26 changes: 0 additions & 26 deletions website/announcements/api/v1/serializers.py

This file was deleted.

7 changes: 0 additions & 7 deletions website/announcements/api/v1/urls.py

This file was deleted.

21 changes: 0 additions & 21 deletions website/announcements/api/v1/viewsets.py

This file was deleted.

Empty file removed website/events/api/v1/__init__.py
Empty file.
14 changes: 0 additions & 14 deletions website/events/api/v1/serializers/__init__.py

This file was deleted.

Loading

0 comments on commit 0bc0bee

Please sign in to comment.