Can't create a project using API via POST on /projects
Summary
I've tested the functionality for creating a new project using Postman App on Windows and the Gitlab API, but instead of creating a new project i get a list of projects and no project is created.
Based on guide: https://docs.gitlab.com/ce/api/projects.html#create-project
Steps to reproduce
| info | data |
|---|---|
| Website | https://www.gitlab.com |
| Http Method | POST |
| path | /api/v4/projects/ |
| request headers | PRIVATE-TOKEN : "{{personal private token}}", Content-Type : "application/json" |
| request body | {"name":"testit"} |
| request headers | Cache-Control →max-age=0, private, must-revalidate, Content-Length →28730, Content-Type →application/json, Date →Wed, 13 Sep 2017 14:55:12 GMT, Etag →W/"3ad30030fa0a61489bd6324ade0e4735", Link →https://gitlab.com/api/v3/projects?archived=&order_by=created_at&page=2&per_page=20&simple=false&sort=desc; rel="next", https://gitlab.com/api/v3/projects?archived=&order_by=created_at&page=1&per_page=20&simple=false&sort=desc; rel="first", https://gitlab.com/api/v3/projects?archived=&order_by=created_at&page=4&per_page=20&simple=false&sort=desc; rel="last", Server →nginx, Strict-Transport-Security →max-age=31536000, Vary →Origin, X-Frame-Options →SAMEORIGIN, X-Next-Page →2, X-Page →1, X-Per-Page →20, X-Prev-Page →, X-Request-Id → ***, X-Runtime →3.294433, X-Total →76, X-Total-Pages →4 |
| result body | {{list of projects}} |
| App to test | Postman v5.2.0 on Windows 10 |
What is the current bug behavior?
No project is created, but as a response i'm getting a list of my projects on Gitlab.com
What is the expected correct behavior?
Create a project named "testit"
Output of checks
This bug happens on GitLab.com
Other notes
If using v3 same output
Thank You!
Edited by Matteo Bombelli