Skip to content

Step7#417

Open
Peach2587 wants to merge 46 commits intomercari-build:mainfrom
Peach2587:STEP7
Open

Step7#417
Peach2587 wants to merge 46 commits intomercari-build:mainfrom
Peach2587:STEP7

Conversation

@Peach2587
Copy link

What

STEP7-6

mmk01@Momoka-MacBook-Air python % docker run -d -p 9000:9000 mercari-build-training/app:latest
bb54c5f74c112a30c2abf775fb3a44c76ebf3374f2ef26a2f8e7465b2d5eb0c7

mmk01@Momoka-MacBook-Air python % curl -X POST --url 'http://0.0.0.0:9000/items' -F 'name=jacket' -F 'category=fashion' -F 'image=@images/local_image.jpg'
{"message":"item received: jacket"}%

mmk01@Momoka-MacBook-Air python % curl -X GET --url 'http://0.0.0.0:9000/items'
{"items":[{"name":"jacket","category":"fashion"},{"name":"jacket","category":"fashion","image_name":"6f4d24a23fa2787a4ab063ee1f91bb0253342d28fcc3722836c4410842d5ddf3"}]}%

mmk01@Momoka-MacBook-Air python % curl -X GET --url 'http://0.0.0.0:9000/items/1'
{"name":"jacket","category":"fashion","image_name":"6f4d24a23fa2787a4ab063ee1f91bb0253342d28fcc3722836c4410842d5ddf3"}%

CHECKS ⚠️

Please make sure you are aware of the following.

  • **The changes in this PR doesn't have private information

Peach2587 and others added 30 commits March 1, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant