Author Topic: ODWEK REST Services API  (Read 887 times)

apaes

  • Newbie
  • *
  • Posts: 6
    • View Profile
ODWEK REST Services API
« on: March 28, 2022, 04:25:01 PM »
Hello everyone.

I am implementing the ODWEK REST Services API and following this guide: https://www.ibm.com/support/pages/system/files/inline-files/Content%20Manager%20OnDemand%20REST%20Services%20Impl%20Guide%202022-02-14.pdf

However, I am trying to access the ping page according to the documentation but I am getting HTTP 404 error only.

Does anyone have any tip on how to make this REST service work ? I am reading the documentation but didn't ring any bells.... https://cmod.wiki/dox/RESTapiDoc/CMOD_10_5_REST_API_Documentation.html

This is my curl command that I am issuing:

curl -i -k https://localhost/cmod-rest/v1/ping -H 'Authorization: CMODSharedKey pool1-asdkjKASDJNbjasdkn' -H 'Content-type: text/plain;chartset=utf-8'

It's returning HTTP 404.

Thanks for any help.

Andre

rjrussel

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: ODWEK REST Services API
« Reply #1 on: May 12, 2022, 09:07:32 AM »
I don't see a port listed in your curl command. This would then default to either 80/443 . This is most likely incorrect. Check your port and then try your request again.

-Rob

apaes

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: ODWEK REST Services API
« Reply #2 on: May 17, 2022, 07:55:17 AM »
Hi Rob. Thanks for your reply. It was my first time configuring CMOD Rest Service API and I though the user was Operation System. After I created the user on the CMOD Administrator Client I could establish the connection through curl/postman.

Thanks again.

Regards,

Andre