URI templates in WSO2 API Publisher -


is possible register endpoints uri templates in api publisher ships wso2 api manager version 1.4.0? example, register endpoint such as:

/jobs/{jobid}/pems

after saving api, can see bit in api config file:

<resource methods="get" url-mapping="/jobs/{jobid}/pems"> 

i have tried manually changing xml file url-mapping uri-template, i.e., to:

<resource methods="get" uri-template="/jobs/{jobid}/pems"> 

but still "no matching resource found in api given request". in case, not work around since need developers able register these endpoints publisher application. whenever changes saved api within api publisher interface, 'uri-template' gets reverted 'url-mapping'.

thanks in advance.

this due apipublisher app supports url-mappings when defining api resources.

if want define uri-template ,instead of url-mapping,you can achieve changing api xml manually.

but before make sure,when creating api,you have define api valid url-mapping.so in trying api,first please edit api apipublisher keeping valid url-mapping pattern api resources , change xml match mentioned uri-template pattern.

thanks;


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -