Skip to content

Conversation

@Katsshura
Copy link
Owner

@Katsshura Katsshura commented Sep 29, 2022

Product Registration feature - Enabled API

Open API docs:

http://localhost:8080/swagger-ui.html
http://localhost:8080/v3/api-docs

ProductDTO Schema:

Fields marked with * are required and cannot be null.
Field Constraints
name* string
description* string, minLength: 10
price* number
image_url* string
available_stock* long

Request JSON Example

{
  "name": "Test Product One",
  "description": "Product Test Via Postman One",
  "price": 0.99,
  "image_url": "http://localhost:9020",
  "available_stock": 5
}

Response JSON Example

{
  "id": 1,
  "name": "Test Product One",
  "description": "Product Test Via Postman One",
  "price": 0.99,
  "image_url": "http://localhost:9020",
  "available_stock": 5,
  "popularity": 0.0
}

@Katsshura Katsshura merged commit 1686171 into master Sep 29, 2022
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.

2 participants