|
5 | 5 |
|
6 | 6 | <p align="center"> |
7 | 7 | <a href="https://github.com/igormagalhaesr/FastAPI-boilerplate"> |
8 | | - <img src="https://user-images.githubusercontent.com/43156212/277095260-ef5d4496-8290-4b18-99b2-0c0b5500504e.png" width="35%" height="auto"> |
| 8 | + <img src="https://user-images.githubusercontent.com/43156212/277095260-ef5d4496-8290-4b18-99b2-0c0b5500504e.png" alt="Blue Rocket with FastAPI Logo as its window. There is a word FAST written" width="35%" height="auto"> |
9 | 9 | </a> |
10 | 10 | </p> |
11 | 11 |
|
|
114 | 114 | ## 3. Prerequisites |
115 | 115 | Start by using the template, and naming the repository to what you want. |
116 | 116 | <p align="left"> |
117 | | - <img src="https://user-images.githubusercontent.com/43156212/277866726-975d1c98-b1c9-4c8e-b4bd-001c8a5728cb.png" width="35%" height="auto"> |
| 117 | + <img src="https://user-images.githubusercontent.com/43156212/277866726-975d1c98-b1c9-4c8e-b4bd-001c8a5728cb.png" alt="clicking use this template button, then create a new repository option" width="35%" height="auto"> |
118 | 118 | </p> |
119 | 119 |
|
120 | 120 | Then clone your created repository (I'm using the base for the example) |
@@ -1042,27 +1042,27 @@ All of the `tier` and `rate_limit` models, schemas, and endpoints are already cr |
1042 | 1042 | Here I'll create a `free` tier: |
1043 | 1043 |
|
1044 | 1044 | <p align="left"> |
1045 | | - <img src="https://user-images.githubusercontent.com/43156212/282275103-d9c4f511-4cfa-40c6-b882-5b09df9f62b9.png" width="70%" height="auto"> |
| 1045 | + <img src="https://user-images.githubusercontent.com/43156212/282275103-d9c4f511-4cfa-40c6-b882-5b09df9f62b9.png" alt="passing name = free to api request body" width="70%" height="auto"> |
1046 | 1046 | </p> |
1047 | 1047 |
|
1048 | 1048 | And a `pro` tier: |
1049 | 1049 |
|
1050 | 1050 | <p align="left"> |
1051 | | - <img src="https://user-images.githubusercontent.com/43156212/282275107-5a6ca593-ccc0-4965-b2db-09ec5ecad91c.png" width="70%" height="auto"> |
| 1051 | + <img src="https://user-images.githubusercontent.com/43156212/282275107-5a6ca593-ccc0-4965-b2db-09ec5ecad91c.png" alt="passing name = pro to api request body" width="70%" height="auto"> |
1052 | 1052 | </p> |
1053 | 1053 |
|
1054 | 1054 | Then I'll associate a `rate_limit` for the path `api/v1/tasks/task` for each of them, I'll associate a `rate limit` for the path `api/v1/tasks/task`. |
1055 | 1055 |
|
1056 | 1056 | 1 request every hour (3600 seconds) for the free tier: |
1057 | 1057 |
|
1058 | 1058 | <p align="left"> |
1059 | | - <img src="https://user-images.githubusercontent.com/43156212/282275105-95d31e19-b798-4f03-98f0-3e9d1844f7b3.png" width="70%" height="auto"> |
| 1059 | + <img src="https://user-images.githubusercontent.com/43156212/282275105-95d31e19-b798-4f03-98f0-3e9d1844f7b3.png" alt="passing path=api/v1/tasks/task, limit=1, period=3600, name=api_v1_tasks:1:3600 to free tier rate limit" width="70%" height="auto"> |
1060 | 1060 | </p> |
1061 | 1061 |
|
1062 | 1062 | 10 requests every hour for the pro tier: |
1063 | 1063 |
|
1064 | 1064 | <p align="left"> |
1065 | | - <img src="https://user-images.githubusercontent.com/43156212/282275108-deec6f46-9d47-4f01-9899-ca42da0f0363.png" width="70%" height="auto"> |
| 1065 | + <img src="https://user-images.githubusercontent.com/43156212/282275108-deec6f46-9d47-4f01-9899-ca42da0f0363.png" alt="passing path=api/v1/tasks/task, limit=10, period=3600, name=api_v1_tasks:10:3600 to pro tier rate limit" width="70%" height="auto"> |
1066 | 1066 | </p> |
1067 | 1067 |
|
1068 | 1068 | Now let's read all the tiers available (`GET api/v1/tiers`): |
|
0 commit comments