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

Initial structure for APIv3 #5356

Merged
merged 96 commits into from
May 9, 2019
Merged

Initial structure for APIv3 #5356

merged 96 commits into from
May 9, 2019

Commits on May 7, 2019

  1. Initial structure for APIv3

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    d90abf2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e33c1a View commit details
    Browse the repository at this point in the history
  3. Basic throttle rates setting

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    2494cc9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6930782 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d0919d0 View commit details
    Browse the repository at this point in the history
  6. Improve serializers

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    7150fb2 View commit details
    Browse the repository at this point in the history
  7. Push filters file

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    b1f3d81 View commit details
    Browse the repository at this point in the history
  8. Nested (under /projects/) versions endpoint

    Listing
    
    http /api/v3/projects/<project_slug>/versions/
    
    Filtering
    
    http /api/v3/projects/<project_slug>/versions/?active=true
    
    Expand extra fields
    
    http /api/v3/projects/<project_slug>/versions/?expand=last_build
    
    Detail
    
    http /api/v3/projects/<project_slug>/versions/<version_slug>/
    
    Editing
    
    http PATCH /api/v3/projects/<project_slug>/versions/<version_slug>/ active=true
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    73f49df View commit details
    Browse the repository at this point in the history
  9. Build endpoints

    Listing (by project)
    
    http /api/v3/projects/pip/builds/
    http /api/v3/projects/pip/builds/?expand=config
    
    Listing (by version in project)
    
    http /api/v3/projects/pip/versions/19.0.3/builds/
    
    Detail
    
    http /api/v3/projects/pip/builds/1500/
    
    Trigger (default version)
    
    http POST /api/v3/projects/test-builds/builds/
    
    Trigger (specific version)
    
    http POST /api/v3/projects/pip/versions/19.0.3/builds/
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    2c3eecd View commit details
    Browse the repository at this point in the history
  10. Build filters

    Filter by commit
    
    http /api/v3/projects/pip/builds/?commit=0d755d38a894324ab495e12307ec3efd5927df88
    
    Filter by commit (and version)
    
    http /api/v3/projects/pip/versions/19.0.1/builds/?commit=0d755d38a894324ab495e12307ec3efd5927df88
    
    Filter by running
    
    http /api/v3/projects/pip/builds/?running=true
    
    Filter by running (and version)
    
    http /api/v3/projects/pip/versions/19.0.1/builds/?running=true
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    4577fe5 View commit details
    Browse the repository at this point in the history
  11. Endpoints for related projects

    Translations
    
    http /api/v3/projects/pip/translations/
    
    Subprojects
    
    http /api/v3/projects/pip/subprojects/
    
    Superprojects
    
    http /api/v3/projects/pip/superprojects/
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    a043589 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1936654 View commit details
    Browse the repository at this point in the history
  13. Style

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    7968af2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cedb137 View commit details
    Browse the repository at this point in the history
  15. Make the API really browsable

    - use DefaultRouter to get this feature
    - inherit view only from methods that are allowed (using Mixin
      classes)
    - add docstring for `projects` endpoint which is displayed on the
      browsable response
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    577f4ae View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f5502ea View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    47888dd View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9da9ede View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6930902 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    a528102 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    e827cad View commit details
    Browse the repository at this point in the history
  22. Register users endpoint

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    36cf2d2 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    bbeb9b7 View commit details
    Browse the repository at this point in the history
  24. Follow the pattern for URLs

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    d5aed8a View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    b7055c5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    0f2a7fc View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6a620c8 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    e970e96 View commit details
    Browse the repository at this point in the history
  29. Browsable API branding

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    dfa5b2e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    f4475a1 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    cf905c5 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    c363eeb View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    547ead4 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    b1b38b3 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    745558b View commit details
    Browse the repository at this point in the history
  36. Linting

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    31cc708 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    254def3 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    0b9ab9e View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    7fdec50 View commit details
    Browse the repository at this point in the history
  40. Cleanup

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    e014d86 View commit details
    Browse the repository at this point in the history
  41. Typo fixed

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    86c63b3 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    1e9355c View commit details
    Browse the repository at this point in the history
  43. Extend docs a little

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    39ff39c View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    b4b8bab View commit details
    Browse the repository at this point in the history
  45. Rename field

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    b676988 View commit details
    Browse the repository at this point in the history
  46. Typo

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    1029b2d View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    db51c32 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    2249f6e View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    289d927 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    eb3d358 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    bbe4113 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    512b5df View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    995fd09 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    b3736cb View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    894ba15 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    13e4d66 View commit details
    Browse the repository at this point in the history
  57. Fix subprojects query

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    9c0dda6 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    6abd053 View commit details
    Browse the repository at this point in the history
  59. Remove unused import

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    e57843e View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    b473ddc View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    df82ddd View commit details
    Browse the repository at this point in the history
  62. Serializer docstrings

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    f519787 View commit details
    Browse the repository at this point in the history
  63. Rely on a custom permission class

    We need both things,
    
    1. permission class to handle methods that does not pass over
    `get_queryset` (POST, for example)
    2. a mixin with `get_queryset` to return the proper queryset for the
    logged in user
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    854530f View commit details
    Browse the repository at this point in the history
  64. Some docstrings

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    4406687 View commit details
    Browse the repository at this point in the history
  65. Cleanup after rebase

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    e6585e2 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    ebbe613 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    443f277 View commit details
    Browse the repository at this point in the history
  68. Remove old examples

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    d09c09f View commit details
    Browse the repository at this point in the history
  69. Requirements updated

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    41ef2d3 View commit details
    Browse the repository at this point in the history
  70. Avoid throttling on tests

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    55cbf46 View commit details
    Browse the repository at this point in the history
  71. Variable name

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    4e74205 View commit details
    Browse the repository at this point in the history
  72. Explicit return

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    86f89f0 View commit details
    Browse the repository at this point in the history
  73. Rename file

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    2035ea1 View commit details
    Browse the repository at this point in the history
  74. Remove unused import

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    8d11b9d View commit details
    Browse the repository at this point in the history
  75. Lint fixes

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    99c7954 View commit details
    Browse the repository at this point in the history
  76. pre-commit auto style

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    276a979 View commit details
    Browse the repository at this point in the history
  77. Improve/Fix build triggering

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    5dfc7bb View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    c034972 View commit details
    Browse the repository at this point in the history
  79. Fix serializer on Build

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    fa0dc1f View commit details
    Browse the repository at this point in the history
  80. More docstrings

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    e0b716a View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    c4da1b7 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    e3a58e2 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    86d8865 View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    2e40de9 View commit details
    Browse the repository at this point in the history
  85. Typo

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    9ae1814 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    fa5c823 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    b634daa View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    4f1f587 View commit details
    Browse the repository at this point in the history
  89. Docstring URL typo

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    741e017 View commit details
    Browse the repository at this point in the history
  90. User endpoint does not exist anymore

    No need to make this exception here.
    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    ade5392 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    71a6539 View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    6d3eee5 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    85b393c View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    b4d7942 View commit details
    Browse the repository at this point in the history
  95. Lint fixes

    humitos committed May 7, 2019
    Configuration menu
    Copy the full SHA
    8ebfb1c View commit details
    Browse the repository at this point in the history

Commits on May 8, 2019

  1. Inherit order matters

    NestedViewSetMixin has to be on the left of ProjectQuerySetMixin to
    filter nested results properly.
    humitos committed May 8, 2019
    Configuration menu
    Copy the full SHA
    e4ac327 View commit details
    Browse the repository at this point in the history