- Read Adidas API Guidelines
- Draw.io
- Git
- Code editor
- Apiary account within adidas group.
-
Fork this repo and pull in your local machine
-
Edit and check the swagger file
swagger.yaml
As a new assignement you are asked to add a wishlist feature to our adidas ecom (website, native apps).
You've decided wisly to think API First and API Design First.
You've assigned 4 user stories:
- As a user, I want to add a product in my wishlist
- As a user, I want to retrieve my wishlist
- As a user, I want to delete a specific product from mt wishlist
- As a user, I want to clear my wishlist
The existing core Product API privides this affordances:
- Retrieve the list of products
- Retrieve a single product
- Create a product
- Update an existing product (status...)
- Retrieve reviews about a product
- Add a product review
- Create a user
- Retrieve user profile
TASK: List the new API affodrances
The state machine diagram will help you to identify the main REST ressources and their relations.
TASK: In this step we extend an existing state diagrams for the proposed API. Each box in the diagram represents a possible representation. You can use arrows to indicate transitions from one box to the next.
- Open this link
- Edit the diagram
Step3. Formalize the design in the Open API Specification
The OAS file can be edited in whatever tool you like BUT NOT GENERATED FROM YOUR CODE. We suggest either using Swagger Editor or VS Code with extensions. The most important thing is that the final one (the contract) MUST be in Apiary.
TASK: Extend the existing swagger.yaml
TASK: Try the Apiary mock service
At this stage you:
- Ask feedback from your API users by sending them the documentation link.
- Ask feedback from your product owner
If your API looks like this remote control then your design is affordant!
Every API description MUST be published in adidas API design platform (apiary.io) and SHOULD be stored in version control system (Bitbucket, GitHub) in the same repository as the API implementation.
TASKS:
- Host your API in github
- Setup up Github/apiary Sync
Missing description Missing examples Missing HAL Exposing internal model Missing support contact
Usage of acronyms, what's ATP stands for ? Missing description / context Missing HAL Missing support contact
Sample APIs following the guidelines are available at adidas-group GitHub. The samples include the following:
Very simple API including implementation, testing, and full CI/CD lifecycle.
Real-world API with state transition, API key client app authentication, exposed via API management.
Sample API used as the template for newly created projects at Apiary.
Real-world Adidas Inventory API (WIP)
Demo API, including implementation and testing used during training.
Sample API showcasing description of complex query parameter rules.