Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

issues about REST API, some links not open sucess

I've tried access the links follow DOCUMENTAION, but not all links success.

total 12 links have been refered in "Docs » 11.Rest API » GET Routes"

5 links are success, 5 links are "page not found", 2 links are "we're sorry, something went very wrong!"

detail as below:

GET Routes
myocsserver/ocsapi/v1/my/routes
page not found

List computers ID
myocsserver/ocsapi/v1/computers/listID
success

List X computers details (start, limit)
myocsserver/ocsapi/v1/computers?start={startoffset}&limit={limitoffset}
success

List one computer details
myocsserver/ocsapi/v1/computer/{ID}/{specificSection}
success

List computer that match a term
myocsserver/ocsapi/v1/computers/search?start={startoffset}&limit={limitoffset}&{searchCriteria}={valueToMatch}
success

List softwares (start, limit, soft)
myocsserver/ocsapi/v1/softwares?start={startoffset}&limit={limitoffset}&soft={software}
page not found

List SNMP Type
myocsserver/ocsapi/v1/snmps/typeList
success

List X SNMP Type details (start, limit)
myocsserver/ocsapi/v1/snmps?start={startoffset}&limit={limitoffset}
page not found

List one SNMP Type details
myocsserver/ocsapi/v1/snmp/{TABLE_TYPE_NAME}/{ID}
we're sorry, something went very wrong!

List IP Discover Networks
myocsserver/ocsapi/v1/ipdiscover/
we're sorry, something went very wrong!

List IP Discover Networks Elements
myocsserver/ocsapi/v1/ipdiscover/{networkID}
page not found

List IP Discover Elements by TAG
myocsserver/ocsapi/v1/ipdiscover/{TAG}
page not found

could you give me some suggestion? how to check it? thanks in advance.
in OCS Inventory NG server for Unix by (120 points)

2 Answers

0 votes
I think that something like this maybe should be placed in a github failure report

https://github.com/OCSInventory-NG

Kind regards

Sokatra
by (22.6k points)
0 votes

Done: https://github.com/OCSInventory-NG/OCSInventory-ocsreports/issues/1575
I created table eventlogs and added the HARDWARE_ID column, and it works but myocsserver/ocsapi/v1/my/routes still gives not found. Update: 
"
ocsapi/v1/my/routes is a placeholder and need to be changed with the route you actually want to use."

by (4.6k points)
edited by
 
Powered by Question2Answer
...