NetTalk Central

Author Topic: Rest-JSon Services  (Read 3665 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Rest-JSon Services
« on: April 17, 2015, 03:02:55 AM »
Hi Bruce,

It now seems that the documentation on the web services in a running Nettalk we server is jumbled after the HTTP Get section in the online documentation in 8.44, was fine in 8.42.
When one turns on the private setting for a web service procedure it throws some funky error page instead of the services not marked as private. I would expect the privates procs not be displayed and the non private be displayed.

I also was looking in the webinar's for an example of a json/rest GET. I have not found one, would you give me a webinar that does have an example. Better yet would you provide the client app you have been using as a demo in your webinar's.

Also I have one request. When using a file as a parameter and having defined fields to return I would like it to show only those fields in the parameter list of that file in the documentation. I really do not want the client or anyone else seeing fields for security reasons. 

Ashley
« Last Edit: April 17, 2015, 03:27:59 AM by astahl »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Rest-JSon Services
« Reply #1 on: April 17, 2015, 07:36:02 AM »
Hi Ashley,

>> I also was looking in the webinar's for an example of a json/rest GET. I have not found one, would you give me a webinar that does have an example.

ClarionLive #302 I think.

>> Better yet would you provide the client app you have been using as a demo in your webinar's.

It's in the same folder as the server - ie
C:\Clarion10\Examples\NetTalk\Web Server\WebServiceRequiresXFiles (77)

I'll look into the doc issue (I saw that as well) and also the Private issue - thanks for reporting that.

>>  I would like it to show only those fields in the parameter list of that file in the documentation. I really do not want the client or anyone else seeing fields for security reasons. 

I think what you are saying is that you want to mark _some_ of the fields in the file structure as "private" for documentation purposes?

Cheers
Bruce



astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Rest-JSon Services
« Reply #2 on: April 21, 2015, 03:41:38 AM »
Hi Bruce,

I would like to set in the "Parameters" a list of only the fields I want to share with the outside world. Like you have in the "Returns" where you have the fields you only want to return if added.

Also in WebServiceRequiresXFiles (77) the Client app does not contain any reference or code for json.


Ashley
« Last Edit: April 21, 2015, 05:22:41 AM by astahl »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Rest-JSon Services
« Reply #3 on: May 06, 2015, 05:53:29 AM »
Hi Ashley,

>> When one turns on the private setting for a web service procedure it throws some funky error page instead of the services not marked as private. I would expect the privates procs not be displayed and the non private be displayed.

fixed in 8.46

>> I would like to set in the "Parameters" a list of only the fields I want to share with the outside world.

done for 8.46. (not you will need xFiles 2.66 or later...)

>> Also in WebServiceRequiresXFiles (77) the Client app does not contain any reference or code for json.

done in 8.46

Cheers
Bruce

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Rest-JSon Services
« Reply #4 on: May 07, 2015, 02:15:09 AM »
Hi Bruce,

Thanks so much for the fixes!!!!

Ashley