So, please, who can help me?
I installed PxWebApi 2.0-beta on Windows by downloading it from GitHub and extracting it to C:\inetpub\wwwroot\PxWebApi. I made sure .NET 8.0 Runtime and ASP.NET Core were installed. When I opened http://localhost/PxWebApi/ in the browser, the Swagger page appeared, which means the API is running. However, when I tried to access the tables via PowerShell using Invoke-WebRequest -Uri 'http://localhost/PxWebApi/api/v2/tables' -Headers @{ 'API_ADMIN_KEY' = 'test' }, I got a 404 Not Found error. I then created the folder App_Data inside PxWebApi and placed all my PX files in C:\inetpub\wwwroot\PxWebApi\App_Data\Tables, making sure the folder inherited permissions from the parent and the application pool had read and modify rights. After restarting IIS, I still encounter 404 errors. I would like to know if there are additional steps required to ensure PxWebApi reads the PX files correctly and exposes the tables through the API.![]()
So, please, who can help me?
--
You received this message because you are subscribed to the Google Groups "pcaxis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcaxis+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pcaxis/00ca1578-8a80-4cc2-9e6e-e7b362b9f96fn%40googlegroups.com.
I installed PxWebApi 2.0-beta on Windows by downloading it from GitHub and extracting it to C:\inetpub\wwwroot\PxWebApi. I made sure .NET 8.0 Runtime and ASP.NET Core were installed. When I opened http://localhost/PxWebApi/ in the browser, the Swagger page appeared, which means the API is running. However, when I tried to access the tables via PowerShell using Invoke-WebRequest -Uri 'http://localhost/PxWebApi/api/v2/tables' -Headers @{ 'API_ADMIN_KEY' = 'test' }, I got a 404 Not Found error. I then created the folder App_Data inside PxWebApi and placed all my PX files in C:\inetpub\wwwroot\PxWebApi\App_Data\Tables, making sure the folder inherited permissions from the parent and the application pool had read and modify rights. After restarting IIS, I still encounter 404 errors. I would like to know if there are additional steps required to ensure PxWebApi reads the PX files correctly and exposes the tables through the API.![]()
So, please, who can help me?
--