File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
content/reference/api/hub Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -818,6 +818,36 @@ paths:
818818 $ref : " #/components/responses/Forbidden"
819819 " 404 " :
820820 $ref : " #/components/responses/NotFound"
821+ /v2/namespaces/{namespace}/repositories :
822+ parameters :
823+ - $ref : " #/components/parameters/namespace"
824+ post :
825+ summary : Creates a new repository
826+ description : |
827+ PAT scope: `repo:admin`
828+
829+ Legacy endpoint: `/v2/repositories/`
830+ tags :
831+ - repositories
832+ requestBody :
833+ required : true
834+ content :
835+ application/json :
836+ schema :
837+ $ref : " #/components/schemas/create_repository"
838+ responses :
839+ " 200 " :
840+ description : Repository created
841+ content :
842+ application/json :
843+ schema :
844+ $ref : " #/components/schemas/repository_info"
845+ " 400 " :
846+ $ref : " #/components/responses/bad_request"
847+ " 403 " :
848+ $ref : " #/components/responses/forbidden"
849+ " 404 " :
850+ $ref : " #/components/responses/not_found"
821851 /v2/namespaces/{namespace}/repositories/{repository}/tags :
822852 parameters :
823853 - $ref : " #/components/parameters/namespace"
You can’t perform that action at this time.
0 commit comments