Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most of the API V8 has incorrect path. Missing the /Api/ #253

Closed
patrickstump opened this issue Mar 22, 2019 · 1 comment
Closed

Most of the API V8 has incorrect path. Missing the /Api/ #253

patrickstump opened this issue Mar 22, 2019 · 1 comment

Comments

@patrickstump
Copy link

patrickstump commented Mar 22, 2019

Most of the documentation under Developer Guid > API Versions > API-Version-8 > JSON API
shows the api path as just /V8/*.
This appears to be incorrect from what I can see in the code.

Looking in the rewrite rules in .htaccess it only show /Api/*

--------- DEPRECATED --------
RewriteRule ^api/(.?)$ lib/API/public/index.php/$1 [L]
RewriteRule ^api/(.)$ - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
-----------------------------

RewriteRule ^Api/access_token$ Api/index.php/access_token [L]
RewriteRule ^Api/V8/(.*?)$ Api/index.php/V8/$1 [L]
RewriteRule ^Api/(.*)$ - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Expected Behavior
Documentation should show "/Api/V8/..."

Actual Behavior
Documentations shows api as /V8/* Missing the /Api/V8

Possible Fix
Update Documentation

Steps to Reproduce
Not Applicable.
Context
This took me a while to figure out what was wrong with my code trying to access the new api.
So time wasted. Once if found the /Api portion, it appears to be working well.

Your Environment
SuiteCRM Version used:7.11.2
Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome (latest)
Environment name and version (e.g. MySQL, PHP 7): MariaDB and PHP 72
Operating System and version (e.g Ubuntu 16.04): ubuntu 18.04

@pgorod
Copy link
Contributor

pgorod commented Jan 29, 2020

I believe this is fixed already. Thanks.

@pgorod pgorod closed this as completed Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants