-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopenapi.yaml
54 lines (54 loc) · 1.25 KB
/
openapi.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
openapi: 3.0.0
info:
title: Proposal API
version: 1.0.0
description: API for managing proposals
servers:
- url: http://localhost:3000
paths:
/:
post:
summary: Create a new proposal
operationId: createProposal
responses:
'200':
description: Proposal created successfully
get:
summary: Get all proposals
operationId: getProposals
responses:
'200':
description: A list of proposals
/{id}:
delete:
summary: Delete a proposal by ID
operationId: deleteProposal
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Proposal deleted successfully
/category/{category}:
get:
summary: Get proposals by category
operationId: getProposalByCategory
parameters:
- name: category
in: path
required: true
schema:
type: string
responses:
'200':
description: A list of proposals by category
/categories:
get:
summary: Get all proposal categories
operationId: getProposalsCategories
responses:
'200':
description: A list of proposal categories