Trying to get GIT commits via Postman

0
hello,   I want to retrieve alle commits in an Mendix app. It is possible to data via https://repository.api.mendix.com/v1/repositories/[App ID]/branches/trunk/commits?limit=100 for example in postman.   But i want more info and tried another way to get more data via the team server url I've tried to get commits via postman via https://git.api.mendix.com/[App ID].git/[unknown] (I use basic authentication with username = your e-mail adres and password = a PAT, that looks alright)   But I cannot find the right url and get "You're not allowed to perform this request.” Do anyone knows wat url parameters can be used?  
asked
2 answers
0

Just tested and works fine on my end. Didn't set up (Basic) Auth via the Authorization tab of the request, but rather by adding the Authorization header with value MxToken YourPAT

 

For reference, this is my URL https://repository.api.mendix.com/v1/repositories/<APPID>/branches/main/commits

 

Note that the mainline is actually called ‘main’ and not ‘trunk’

answered
0

Hi Tjerk,

 

I’m experiencing the same issue. Trying to get the information of the branches in the Repository API. Created a postman request (GET) with the correct URL and added the Authorization header with the value “MxToken <<PAT>>”, but I receive a 403 error (You’re not allowed to perform this request). The scope of the created PAT does not have any limitation and the connected account has all permissions on app level. Were you able to solve the issue?

answered