Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postman-banner

postman-academy postbot json

Repository to save my path in learning modules of Self-Study Learning in site Postman Academy.

Challenge: POST add book

Library Books API : POST add books Test.

  1. Fork the Library Books API from the Public API Essentials Workspace;
  2. Library Books API  > (POST) add books > Body > Add Test in {{bookTitle}} variable;
  3. Run the POST requet to add a new book Test;
  4. Check on "message": "OK".

Library Books API  : GET all books Tests

  1. Request all books and check Test Results
  2. Open the test Library Books API  > (GET) all books;
  3. Click on Postbot > Add tests to this request > Fix tests;
  4. The variable {{base_Url}} is https://postman-library-api.glitch.me;
  5. Run the GET request in Library Books API  > (GET) all books;
  6. Send a GET request to check all books.

Library Books API  : GET book by id Documentation

  1. Request all books and check Test Results
  2. Open the test Library Books API  > (GET) books by id;
  3. Check if response was 200, successful.
  4. Use Postbot to create a contract test.
  5. Add the API documentationPostbot > Add documentation;
  6. Check on the documentation. documentation The example without token in my repository, file to import Library_Books_API_postman_collection.json. Saved file: Postman-Library_Books_API

Weather API  : GET weekly weather Visualizations

  1. Fork Weather API collection;
  2. Select GET weekly weather request and send the request;
  3. Click on Postbot > Visualize the response  and change the type of visualization (bar chart, table or line chart);
  4. Check the response in visualization tab. vis The example without token in my repository, file to import Weather_API_postman_collection.json. Saved file: Postman-Weather-API

API authentication and authorization

Postman Challenge of use token-based authentication. Please follow the steps.

  1. Create workspace eCommerce;
  2. Import the Payment API: https://customer-education.postmanlabs.com/apis/payment/index.yaml;
  3. Create a new environment named as Staging Env and a variable baseUrl, type default and initial value as https://customer-education.postmanlabs.com;
  4. Click on button (Re-)Generate token for test user to create a token and user; token
  5. Payment API > v1 > payment > card > {cardId} > Add a new credit card the API will ask the authenticator after run the post request Add a new credit card;
  6. Create a Bearer Token: Add a new credit card > Authorization´ insert the token in {{token}}` valiable;
  7. Add the script above in `Add a new credit card > Body´;
  8. Run again the API and check on the result:
{
    "message": "Card inserted successfully.",
    "card_id": 754
}

Body in step 7:

 {
  "cardNumber": "3243-2343-2343-2342",
  "expiryDate": "11/2023",
  "cvv": "1234",
  "nameOnCard": "J Doe"
}

token The example without token in my repository, file to import Payment_API_postman_collection.json. Saved file: Postman-Payment-API

10 Postman Missions for Collaboration

The path to complete the 10 missions and earn the badges is simple, just follow what is request in all 10 collections.

  1. Create a new workspace with a different name of 10 Postman Missions for Collaboration, I did 10 Missions - Mayanna Oliveira;
  2. Create a workspace using the Workspace > Create a new workspace > Blank workspace;
  3. Set it as Public, Workspace > Settings > Workspace type > Public;
  4. Configure your Postman like I did in my study proofile
  5. Add a description, summary and a tag on the workspace;
  6. Create a new Postman API Key and save the key.
  7. Open the Postman workspace 10 Postman Missions for Collaboration
  8. Fork all missions to your new workspace.
  9. Insert the workspace id in the Test your solution! after run all request; workspace-id
  10. After run one request check the surprise in Response > Vizualize;
  11. The cute kitty after successful. mission1

Mission 01: Workspaces and forking

Learn to create and manage workspaces for building and sharing your Postman assets, including forking collections to duplicate missions within your workspace. After fork the collections check the overview to understand step-by-step.

Mission 02: Requests, collections and environments

Mission 02: Requests, collections and environments

Explore Postman's requests, environments, and collections to manage API interactions, customize testing environments, and streamline workflows for effective collaboration.

Mission 02: Requests, collections and environments

Mission 03: Variables and authorization

Master variables for consistent API workflows, enhancing reusability, collaboration, and security in API management.

Mission 03: Variables and authorization

Mission 04: Tests and debugging

Learn about testing within a Postman collection and using the console for debugging to ensure consistent API procedures, deepen understanding of API behavior, and resolve issues efficiently.

Mission 04: Tests and debugging

Mission 05: Scripting

Scripting automates tasks, reduces manual effort, and enables complex test scenarios, enhancing efficiency in addressing specific use cases and requirements.

Mission 05: Scripting

Mission 06: Run a collection

Using the Collection Runner, teams can conduct bulk tests for API validation, share results transparently, troubleshoot effectively, and improve iterative API development.

Mission 06: Run a collection

Mission 07: Discoverability and collaboration

Postman's documentation and collaboration features enhance discoverability, reduce miscommunication, streamline development, and enable efficient teamwork across projects.

Mission 07: Discoverability and collaboration

Mission 08: Mock servers and monitors

Postman's mock servers and monitors simplify simulating real-world services and automating API testing, fostering seamless collaboration, reducing dependencies, and ensuring API reliability and performance.

Mission 08: Mock servers and monitors

Mission 09: Advanced testing

Teams can optimize testing with libraries and dynamic request bodies, improving efficiency, consistency, and adaptability in development cycles.

Mission 09: Advanced testing

Mission 10: Submit for badge

Once you are done with all of your missions, submit your work and earn a badge for mastering Postman's collaborative features!

Mission 10: Submit for badge

Postman Badges

badge1 badge2 badge3

Postman Certificates

certifed1 certifed2 certifed1 certifed4 certifed5

Contributors
mayannaoliveira

Please, check in contributors.md before fork this respository.

About

Repository to save my path in learning modules of Self-Study Learning in site Postman Academy. #Postman #API #challenges #academy

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors