-
Re: What are the values to be passed in getTagByNameRequest of 'Get Tag By Name' Resource
Evanthika Amarasiri May 1, 2018 4:43 PM (in response to Evanthika Amarasiri)Also, is there a specific reason to support GET with a body in this scenario? I noticed this for some other GET resources as well.Is there a specific reason why these methods are designed this way.
-
Re: What are the values to be passed in getTagByNameRequest of 'Get Tag By Name' Resource
Sanford Whiteman May 1, 2018 5:07 PM (in response to Evanthika Amarasiri)It isn't possible to send a body with a GET (you'd have to use POST and make it a "synthetic" GET by adding _method=GET to the query string).
But I think the docs are wrong here in any case. What would be the purpose of a paginated response, when by definition (unique tag names) there can only be one result by name?
-
Re: What are the values to be passed in getTagByNameRequest of 'Get Tag By Name' Resource
Evanthika Amarasiri May 1, 2018 5:26 PM (in response to Sanford Whiteman)Thanks for the response Sanford. You have a point. If we pass the tag name, it would return only one result and there is no point in passing maxReturn values etc. Therefore, can we conclude that the Marketing documentation is wrong and we should be able to invoke the below resource just by passing a tag name as a query parameter? Can we conclude saying that the getTagByNameRequest Body parameter is not required at all for this resource?
Based on this, we can do our API implementation and inform the front end team about the exact parameters to be passed.
/rest/asset/v1/tagType/byName.json
-
Re: What are the values to be passed in getTagByNameRequest of 'Get Tag By Name' Resource
Sanford Whiteman May 1, 2018 5:33 PM (in response to Evanthika Amarasiri)Yes, I think your assumptions are right on.
Maybe the POST variation was intended to allow some other functionality (like a filter by some other characteristic) but it wasn't implemented. More likely it just isn't supposed to be in the docs.
-
Re: What are the values to be passed in getTagByNameRequest of 'Get Tag By Name' Resource
Evanthika Amarasiri May 1, 2018 5:37 PM (in response to Sanford Whiteman)Awesome! Many thanks for the prompt responses. I will inform the relevant teams accordingly. Hope the documentation will be corrected in future.
Regards,
Evanthika
-
-
-