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

More APIs - Round 4 #33

Merged
merged 5 commits into from
Jun 24, 2024
Merged

More APIs - Round 4 #33

merged 5 commits into from
Jun 24, 2024

Conversation

shadinaif
Copy link
Collaborator

@shadinaif shadinaif commented Jun 11, 2024

v0.4.5

  • feat: add rate limit to accessible-info API

v0.4.3

  • feat: get accessible tenant API
  • feat: add hidden_courses to statistics API
  • fix: remove author_name from courses API
  • feat: new API learners-course

@shadinaif shadinaif force-pushed the shadinaif/apis-round-3 branch 3 times, most recently from 6f63342 to 114f46c Compare June 12, 2024 12:17
Copy link
Collaborator

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @shadinaif!


class AccessibleTenantsInfoView(APIView):
"""View to get the list of accessible tenants"""
permission_classes = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Token authentication and limit to superusers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do 👍🏼

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OmarIthawi , I added a rate limit for anonymous access. The API is accessible as anonymous or system-staff. No rate limit on system-staff users. Do we still need an API Key or Token? I guess not

and do not hide courses from detailed views
@OmarIthawi OmarIthawi self-requested a review June 12, 2024 15:42
@shadinaif shadinaif changed the title More APIs - Round 3 More APIs - Round 4 Jun 12, 2024
Copy link
Collaborator

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shadinaif Looks good to me once the Token authentication is added to the tenant info API.

@shadinaif shadinaif force-pushed the shadinaif/apis-round-3 branch 2 times, most recently from 516f10c to 60114b7 Compare June 13, 2024 15:58
@shadinaif shadinaif force-pushed the shadinaif/apis-round-3 branch from 60114b7 to 0a81452 Compare June 13, 2024 15:59
@shadinaif shadinaif marked this pull request as ready for review June 14, 2024 07:12
@shadinaif shadinaif force-pushed the shadinaif/apis-round-3 branch from 2818a43 to 16938ca Compare June 14, 2024 07:32
@shadinaif shadinaif force-pushed the shadinaif/apis-round-3 branch from 16938ca to 95cbbd3 Compare June 14, 2024 07:46
@shadinaif
Copy link
Collaborator Author

shadinaif commented Jun 24, 2024

API key to be added later #35

@shadinaif shadinaif merged commit db7d6a8 into main Jun 24, 2024
3 checks passed
@shadinaif shadinaif deleted the shadinaif/apis-round-3 branch June 24, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants