I would like to create an API on Portal 4.2 through the post method of a swagger file.json Is it possible?
I would like to create an API on Portal 4.2 through the post method of a swagger file.json Is it possible?
Hi, you can create APIs on Portal by a POST request to the Portal API, you would need a bit more information in your post than just the swagger, event though the swagger could be a part of the request body. Have a look here Portal API - CA API Developer Portal - 4.2 - CA Technologies Documentation
For more detailed information.
Dear Mossucca ,
diwmi01 already provided the document of portal api, can you expand
under section
click Model to show the parameter description.
There are 3 nodes related to the swagger file,
Specifies the filename of the Swagger or WADL file that documents the API. If SpecFilename is specified, SpecContent should be specified as well.
,Specifies the type of the specification file (ie Swagger, WADL, Json). The API needs a specification file so that developers can use the API Explorer to understand the API. If SpecContent is specified, SpecFilename should be specified as well.
,The size of the specification file in bytes (1048576)
,
(The interactive document doesn't say, but SpecContent needs to be base64 encoded, the body "Example Value" shows the same).
Regards,
Mark
Dear Mossucca ,
diwmi01 already provided the document of portal api, can you expand
POST /2.0/Apis
under section
Apis : API operations
click Model to show the parameter description.
There are 3 nodes related to the swagger file,
Specifies the filename of the Swagger or WADL file that documents the API. If SpecFilename is specified, SpecContent should be specified as well.
,Specifies the type of the specification file (ie Swagger, WADL, Json). The API needs a specification file so that developers can use the API Explorer to understand the API. If SpecContent is specified, SpecFilename should be specified as well.
,The size of the specification file in bytes (1048576)
,(The interactive document doesn't say, but SpecContent needs to be base64 encoded, the body "Example Value" shows the same).
Regards,
Mark