Commit 7042a03
Amine Afia
Update Swagger documentation and add BasicAuth (#82)
### TL;DR
Updated API documentation and added basic authentication.
### What changed?
- Removed unnecessary contact information and terms of service from API documentation
- Added license information to Swagger documentation
- Updated host and base path in Swagger configuration
- Implemented basic authentication for API endpoints
- Updated Swagger info with version, title, and description
### How to test?
1. Run the API server
2. Access the Swagger documentation at `/swagger/index.html`
3. Verify that the updated information is displayed correctly
4. Test API endpoints using basic authentication
### Why make this change?
This change improves the API documentation by removing unnecessary information and adding important details like licensing. It also enhances security by implementing basic authentication for API endpoints, ensuring that only authorized users can access the API.1 parent c4aef07 commit 7042a03
4 files changed
+55
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 32 | | |
39 | 33 | | |
40 | | - | |
41 | 34 | | |
42 | 35 | | |
43 | | - | |
| 36 | + | |
44 | 37 | | |
45 | | - | |
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
934 | 938 | | |
935 | 939 | | |
936 | 940 | | |
937 | | - | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
938 | 952 | | |
939 | 953 | | |
940 | 954 | | |
941 | 955 | | |
942 | | - | |
943 | | - | |
944 | | - | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
945 | 959 | | |
946 | | - | |
947 | | - | |
| 960 | + | |
| 961 | + | |
948 | 962 | | |
949 | 963 | | |
950 | 964 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
| |||
923 | 932 | | |
924 | 933 | | |
925 | 934 | | |
926 | | - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
927 | 946 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
592 | 600 | | |
593 | 601 | | |
594 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
595 | 608 | | |
0 commit comments