Github API cannot read the '#' in the file path but need to change to '%'

23 views Asked by At

I was trying to get the file content from Github API,I found out that when we put the file_path as service-#abcd-P#1234.json, it returned as not found but when I changed to service-%abcd-P%1234.json, it was able to retrieve the content of the file

https://api.github.com/repos/{username}/{repository_name}/contents/{file_path}

So I would like to ask if there is any more way to overcome this issue as file_path is automatically generated by the system

changed the # in file_path to %

0

There are 0 answers