postman-solutions-eng / aippealing-companies-template

API to create appealing images of company products made of chocolate, gold or lego
https://auto-demo.postmansolutions.com
Apache License 2.0
3 stars 1 forks source link

Onboarding Issue #28

Open jonico opened 1 year ago

jonico commented 1 year ago

A day in the life of an API-developer: On-boarding issue

image

We are thrilled to have you and like your first day to be educational and fun, so you will learn about our API-first development workflow by having fun with Lego, Postman and OpenAI (DALL-E, GPT-3) 🏒 ➑️ πŸ€– ➑️ 🍫 πŸš— πŸ–ΌοΈ

Tours overview

We will touch many aspects of both the producer as well as consumer lifecycle for API-first development.

image

There are three tours available:

The API Consumer Tour - Fun with AI and lego

image image

The highlighted entry is the Public A(i)ppealing Companies Workspace. Inside the workspace, you will find the collection that is backing the public facing documentation. This collection was automatically generated by the OpenAPI definition of its corresponding internal workspace.

image

image

Fork to your personal namespace

image image image image image image image

As you can see, platin is not yet supported, so let's ask the API producers to introduce that material in a request comment

image image image

The API Producer Tour - Very short - Collaboration Aspect Docs

image

Click on View Pull Request to review the change

image image image

Based on the comment, a new change can be suggested by modifying the collection again

image image

The API Producer Tour - Design Aspects

image image

Tell the requestor that you are on it and resolve the comment

image image image image

image

image

image

image image image

image

image image

The request itself has been copied from our version of the GitHub Web API Reference which has been forked from the public workspace in Postman's Public API Network DevOps category.

image

image

image image image

So far, we can test your API with our mock data, no new pictures will actually be generated and the "ai" mode does not work either - for this we need a real backend implementation of our new API which brings us to the internal consumer flow.

The API Producer Flow - Implementation Aspects

image image

You can use GitHub's branch comparison feature for the details:

image

image image

image

As we have not changed the backend (other than the new test case) yet, we will see similar validation errors in CI/CD as we did when running the integration test suite manually in Postman.

image

- [ ] To change the backend code, you could either use the internal server code generator
image

or an external generator like OpenAPI Tools

image

Review the changes proposed, commit and push them to your branch

image

To solve this issue, copy the OK example response from the CuratedMockResponses collection to data/companies.json in your branch, commit and push.

After that, test cases should successfully run through πŸŽ‰

image image image

The request itself has been copied from our version of the GitHub Web API Reference which has been forked from the public workspace in Postman's Public API Network DevOps category.

image

We could adjust the preview environment's baseUrl to point to the Heroku preview env if we wanted to simulate what CI/CD does in our branch with the review app.

image

image

image

image

image image

Advanced Features probably for another day πŸ˜…

jonico commented 1 year ago

image

jonico commented 1 year ago

image

image

jonico commented 1 year ago

image