[Dev] [APIM] - Required parameters for add documentation to an API with the source type File

2015-09-15 Thread Bhagya Dimenguwari
Hi, I tried to add new document to an API with the Source Type "File". I used the requested parameters as [1] referring firebug information [2] and it does not allow to add the document and got the exception [3]. I am going to test Integration test by referring test case - *APIM2-622:Add documen

Re: [Dev] [APIM] - Required parameters for add documentation to an API with the source type File

2015-09-16 Thread Madusanka Premaratne
Hi Bhagya, Did you try WSO2 Publisher APIs[1]. Find Add/Update API Document in the link [1] - https://docs.wso2.com/display/AM191/Publisher+APIs Thanks, Madusanka On Wed, Sep 16, 2015 at 12:11 PM, Bhagya Dimenguwari wrote: > Hi, > > I tried to add new document to an API with the Source Type "F

Re: [Dev] [APIM] - Required parameters for add documentation to an API with the source type File

2015-09-16 Thread Saneth Dharmakeerthi
HI Madusanka, We have referred that document and it contains how to add inline document, its working fine, problem is how to add a .txt file or a .pdf using the REST API. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Sep 16, 201

Re: [Dev] [APIM] - Required parameters for add documentation to an API with the source type File

2015-09-16 Thread Lakshman Udayakantha
Hi Saneth, to upload the file for documentation use this command curl -X POST -b cookies http://localhost:9774/publisher/site/blocks/documentation/ajax/docs.jag -F "action=addDocumentation" -F "provider=admin" -F "apiName=testAPi" -F "version=1.0.0" -F "docName=testDoc2" -F "docType=how to" -F "s