/product-api-kotlin

CRUD Product API with Kotlin, GraphQL and spring boot example.

Primary LanguageKotlin

CRUD API Kotlin with Spring Boot and GraphQL example.

GraphQL API:

[ ] Querys and Mutation by GUI:

  • http://localhost:8180/gui

  • query { productById(productId: 1) { name } }

  • query { productBySku(sku: 1) { name } }

  • query { products { productId name } }

  • query { products { productId name inventory { warehouses { locality quantity } } } }

  • mutation { createProduct(product: { properties... } ) { name } }

  • mutation { updateProduct(product: { properties... } ) {} }

  • mutation { removeProductById(productId: 1 ) {} }

  • mutation { removeProductBySku(sku: 1 ) {} }

REST API:

[ ] GET - Find product(s)

[ ] POST - Create product

[ ] PUT - Update product

[ ] DELETE - Remove product