Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !6373
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Merged
Created Sep 15, 2016 by Guyzmo@guyzmo🐾Contributor9 of 9 tasks completed9/9 tasks
  • Review changes

  • Download
  • Email patches
  • Plain diff

Adding support for personal snippet endpoint on the API

  • Overview 197
  • Commits 1
  • Pipelines 23
  • Changes 11

What does this MR do?

Exposing the snippets feature as an API

Are there points in the code the reviewer needs to double check?

  • it's a first shot, and I'm not very comfy with Ruby/RoR, so all of it! (fixed)
  • the create method has no authentication yet, and when uncommented does not work (403). (fixed)
    • But is it really needed? I mean can the API really be used when having no private key? (fixed)
  • The /snippets/public (or /snippets/all or /snippets/explore) cannot be reached… I guess something's wrong. (fixed)
  • I have no idea where to start to do a /snippets/search endpoint, but that would be useful. (fixed)
  • there's no tests yet. (done)
  • there's no doc yet. (done)

Why was this MR needed?

Because the personal snippet feature had no API implementation…

Does this MR meet the acceptance criteria?

  • CHANGELOG entry added
  • Documentation created/updated
  • API support added
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Conform by the merge request performance guides
  • Conform by the style guides
  • Branch has no merge conflicts with master (if you do - rebase it please)
  • Squashed related commits together

What are the relevant issue numbers?

#22042 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: features/api-snippets