Task 2 - API Creation / Publishing
Solution Proposed:-
For the api creation found that there are endpoint that will require api.json which contains all the basic information required for an API to be imported in another environment as payload with an Auth2 key that was generated in the key generation phase as header info.Basically the endpoint invocation is required to handle the api creation through the cli tool. If the API creation is successful it invocation returns a response with code 201. Depending on the response recieved, if succeed ,then going to upload the swagger.json ,docs.json , api thumbnail, wsdl and any other component of the imported API by calling relavent REST APIs with corresponding payloads.
Mainly thought to make this process an efficient one with less no of Rest call's to hit the endpoint for the creation for now thought to have a http client pool to handle the http requests.
No comments:
Post a Comment