Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
ac84ae0f
Commit
ac84ae0f
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Clean explorer
parent
382df0d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/api/admin/explorer.php
+6
-5
6 additions, 5 deletions
htdocs/api/admin/explorer.php
with
6 additions
and
5 deletions
htdocs/api/admin/explorer.php
+
6
−
5
View file @
ac84ae0f
<?php
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -19,11 +20,7 @@
* \defgroup api Module DolibarrApi
* \brief API loader
* Search files htdocs/<module>/class/api_<module>.class.php
* \file htdocs/api/indexphp
*
* @todo User authentication with api_key
*
*
* \file htdocs/api/admin/explorer.php
*/
require_once
'../../main.inc.php'
;
...
...
@@ -169,11 +166,15 @@ print $langs->trans("ListOfAvailableAPIs").':<br>';
foreach
(
$listofapis
[
'v1'
]
as
$key
=>
$val
)
{
if
(
$key
==
'login'
)
continue
;
if
(
$key
)
{
foreach
(
$val
as
$method
=>
$val2
)
{
$newclass
=
$val2
[
'className'
];
if
(
preg_match
(
'/restler/i'
,
$newclass
))
continue
;
if
(
$oldclass
!=
$newclass
)
{
print
"
\n
<br>
\n
"
.
$langs
->
trans
(
"Class"
)
.
': '
.
$newclass
.
'<br>'
.
"
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment