Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove api v1 #3845

Merged
merged 10 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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