Skip to content

Commit

Permalink
Merge branch 'apidoc' of github.com:RecyThing/RecyThing-API into apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
tiarajuliarsita committed Dec 11, 2023
2 parents cf3aab1 + 2459e77 commit 4ecb70b
Showing 1 changed file with 66 additions and 11 deletions.
77 changes: 66 additions & 11 deletions swagger/apidoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/RequestAdminsForm"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/RequestRegister"
Expand All @@ -93,9 +98,10 @@
"contoh": {
"value": {
"fullname": "alta",
"email": "alta@gmailcom",
"email": "alta@gmail.com",
"password": "12345678",
"confirm_password": "12345678"
"confirm_password": "12345678",
"status": "aktif"
}
}
}
Expand Down Expand Up @@ -253,16 +259,23 @@
"requestBody": {
"required": true,
"content": {
"multipart/form-data":{
"schema":{
"$ref": "#/components/schemas/RequestAdminsForm"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/RequestRegister"
},
"examples": {
"contoh": {
"value": {
"full_name": "alterra",
"email": "alterra@gmailcom",
"password": "123456789"
"fullname": "alterra",
"email": "alterra@gmail.com",
"password": "123456789",
"confirm_password": "123456789",
"status":"tidak aktif"
}
}
}
Expand Down Expand Up @@ -4498,7 +4511,6 @@
"aktif",
"melewati tenggat"
]

}
},
"searchMissions": {
Expand All @@ -4523,11 +4535,10 @@
"description": "status of mission approvals",
"schema": {
"type": "string",
"enum":[
"enum": [
"perlu tinjauan",
"ditolak",
"disetujui"

]
}
}
Expand All @@ -4547,13 +4558,56 @@
},
"confirm_password": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"aktif",
"tidak aktif"
]
}
},
"required": [
"fullname",
"email",
"password",
"confirm_password",
"status"
]
},
"RequestAdminsForm": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "binary"
},
"fullname": {
"type": "string"
},
"email": {
"type": "string"
},
"password": {
"type": "string"
},
"confirm_password": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"aktif",
"tidak aktif"
]
}
},
"required": [
"full_name",
"fullname",
"email",
"password",
"confirm_password"
"confirm_password",
"status"
]
},
"RequestPrompt": {
Expand Down Expand Up @@ -5342,7 +5396,8 @@
},
"title_stage": {
"type": "string"
},"description_stage": {
},
"description_stage": {
"type": "string"
}
},
Expand Down

0 comments on commit 4ecb70b

Please sign in to comment.