Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #10059

Closed
Open
Created Mar 01, 2016 by Administrator@rootOwner

API responding to POST requests as if they're GET requests

Created by: iamsteadman

Summary

In 8.5.1, POST /api/v3/projects (with a valid name field) returns a list of all projects in JSON with a 200 response code, therefore acting like a GET request.

Steps to reproduce

Post to /api/v3/projects with a name parameter.

Expected behaviour

I imagine the API should return either the single project just created, or an array containing just that project.


We've got GitLab installed on an Ubuntu DigitalOcean box. My colleague updated it a few days ago and prior to his doing so, the python-gitlab project worked fine. Since the update I ditched python-gitlab in an effort to try and figure out what had changed, so have just been using Requests. I've tried posting the data in different formats, but always get the same response.

Let me know if you need more detail.

Assignee
Assign to
Time tracking