-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
73 lines (69 loc) · 1.56 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
swagger: "2.0"
info:
title: Coding Subuh Project API
description: API description in Markdown.
version: 1.0.0
servers:
- url: http://localhost:3000
description: Development server
- url: b27b4550-1313-4bb1-afb8-d82e1be332aa-00-6woy1h5xti2b.sisko.replit.dev
description: Sandbox server on Replit
# host: b27b4550-1313-4bb1-afb8-d82e1be332aa-00-6woy1h5xti2b.sisko.replit.dev
basePath: /
schemes:
- http
tags:
- name: auth
description: Authenticate User
- name: admin
description: Admin
- name: product
description: Product for customers
- name: cart
description: Operation to the cart
paths:
/auth:
post:
tags:
- auth
summary: Auth the users
parameters:
- name: email
required: true
type: string
- name: password
required: true
type: string
produces:
- application/json
responses:
200:
description: OK
401:
description: Unauthorized
/products:
get:
tags:
- product
summary: Returns a list of products.
description: Optional extended description in Markdown.
produces:
- application/json
responses:
200:
description: OK
/cart:
post:
tags:
- cart
summary: Add product to cart.
description: Add product to cart.
parameters:
- name: productId
required: true
type: string
produces:
- application/json
responses:
200:
description: OK