Update a semantic type with REST API (Talend Cloud)

Six Stars

Update a semantic type with REST API (Talend Cloud)

Hello,

 

I saw that it is possible to update a semantic type by using a REST API (Talend Cloud).

I was able to get all the existing semantic type with the first operation (get /categories)

 

https://tds.eu.cloud.talend.com/semanticservice/swagger-ui.html

 

But when i try to upload a file i have an error (not login) and i was not able to understand how to connect (using the login in swagger).

 

If someone had already done that, please help Smiley Happy

Guillaume


Accepted Solutions
Highlighted
Employee

Re: Update a semantic type with REST API (Talend Cloud)

Hello Guilaume,

 

First, were you able to generate an access token from profile preferences page:

Create access token.jpg

 

Then:

  • Fill the token name field
  • Click "Generate"
  • Copy the value displayed in the modal dialog

When you completed these steps, open Postman and create a new request:

Postman.jpg 

 

I hope this will help.

 

Please let me know if you have any further question.

 

Jean-Philippe


All Replies
Moderator

Re: Update a semantic type with REST API (Talend Cloud)

Hi Guillaume,

 

See this documentation page as an example: https://help.talend.com/reader/39NzetoCUZMHcAnJtQuxxg/vKvzhGGzOM6kzcEx73d7Rw

 

Regards,

 

Gwendal

Six Stars

Re: Update a semantic type with REST API (Talend Cloud)

Hello Gwendal,

 

Thank you for your comment, i saw this documentation but i didn't understand how to login into the swagger page and add the token to the request to upload the file.

Is it possible to do it in this page or may i use another tool like postman? (Note that i can not use ESB feature from Talend as it is not into the version i use).

 

Thank you for your help.

Guillaume

Highlighted
Employee

Re: Update a semantic type with REST API (Talend Cloud)

Hello Guilaume,

 

First, were you able to generate an access token from profile preferences page:

Create access token.jpg

 

Then:

  • Fill the token name field
  • Click "Generate"
  • Copy the value displayed in the modal dialog

When you completed these steps, open Postman and create a new request:

Postman.jpg 

 

I hope this will help.

 

Please let me know if you have any further question.

 

Jean-Philippe

Six Stars

Re: Update a semantic type with REST API (Talend Cloud)

Thank you for this explanation. I will test this and let you know.

Six Stars

Re: Update a semantic type with REST API (Talend Cloud)

Someone in my team succeed to achieve the update of semantic types thanks to your explanation.

The swagger page is not very clear but your last post helps a lot! 

Thank you

 

Guillaume

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download