MicroFrontends Classroomnotes 03/Apr/2022

Designing Open API Specifications

  • Using Spotlight studio Refer Here
    Preview
  • Generate the spec easily and create the open api preview
    Preview
  • Refer Here for the open api spec created.
  • Importing OpenAPI Spec in Postman
    Preview
    Preview
    Preview

Exercise: Import a Open API Spec to Create a Post Man Collection

  • Refer the openapi older standard for petstore Refer Here
  • Import this json file to create a new collection for petstore.
    Preview

  • Next Steps:

    • APIs need to be authenticated, how are we going to handle this
    • Tests needs to performed rather than just clicking on requests and manually verifying responses
    • Parametrization needs to be understood.

Creating Test Validation Scripts

  • In this series, we will findout how to set up good test validation scripts in postman.
  • Postman uses JavaScript for this.
  • In addition to JavaScript for test validation, Postman provides ways to create setup and teardown scripts.

Checking API responses

  • Create a new collection in Postman with the variable baseUrl as shown below
    Preview
    Preview
  • When i want to use an Programming Language to perform some activity, I should know the interface/API/Reference details
  • The Postman JavaScript Reference Refer Here
  • In postman we would be carrying out most of the operations using pm object Refer Here
    Preview
    Preview
  • Lets try to understand response Refer Here
    Preview
    Preview
    Preview
    Preview

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner