Rest api
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 1.49.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen For more information, please visit https://hasanbasri93.com
- Dart 2.15.0+ or Flutter 2.8.0+
- Dio 5.0.0+ (https://pub.dev/packages/dio)
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
openapi: 1.0.0
If this Dart package is published to Github, please include the following in pubspec.yaml
dependencies:
openapi:
git:
url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
#ref: main
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
openapi:
path: /path/to/openapi
Please follow the installation procedure and then run the following:
import 'package:openapi/openapi.dart';
final api = Openapi().getKompetisiApi();
final RequestKompetisiDetail requestKompetisiDetail = {"title":"Lomba Ikan Flowerhorn","place":"Aeon Mall Sentul City","notes":"Lorep impusmmm","address":"Jl. Ir. H. Djuamda No. 78 Sentul City Bogor Indonesia 16810","link_maps":"https://goo.gl/maps/a6ETqYvtAMjqyYYC7","date":"yyyy-MM-ddTHH:mm:ss","phone_number":"6565457986241"}; // RequestKompetisiDetail |
try {
final response = await api.addKompetisi(requestKompetisiDetail);
print(response);
} catch on DioError (e) {
print("Exception when calling KompetisiApi->addKompetisi: $e\n");
}
All URIs are relative to http://localhost:3000
Class | Method | HTTP request | Description |
---|---|---|---|
KompetisiApi | addKompetisi | POST /kompetisi | Tambah kompetisi |
KompetisiApi | delKompetisiIdJudge | DELETE /kompetisi/{komId}/judge | Delete Juri |
KompetisiApi | deleteKompetisiNominationsIdParticipant | DELETE /kompetisi/{komId}/nomination/{nomId} | Hapuskan peserta ke nominasi |
KompetisiApi | editKompetisiId | PUT /kompetisi/{komId} | Sunting kompetisi |
KompetisiApi | getKompetisi | GET /kompetisi | Daftar Kompesiti |
KompetisiApi | getKompetisiId | GET /kompetisi/{komId} | Kompesiti per ID |
KompetisiApi | getKompetisiIdJudgement | GET /kompetisi/{komId}/nomination/{nomId}/judgement/{judgeId} | Ambil Nilai Penjurian |
KompetisiApi | getKompetisiIdJudges | GET /kompetisi/{komId}/judge | Daftar Peserta Kompetisi |
KompetisiApi | getKompetisiIdNomination | GET /kompetisi/{komId}/nomination | Daftar Nominasi per KompetisiId |
KompetisiApi | getKompetisiIdParticipants | GET /kompetisi/{komId}/participant | Daftar Peserta Kompetisi |
KompetisiApi | getKompetisiNominationId | GET /kompetisi/{komId}/nomination/{participant_id}/result | Hasil Juri |
KompetisiApi | getKompetisiNominationsId | GET /kompetisi/{komId}/nomination/{nomId} | Daftar Peserta Nominasi |
KompetisiApi | getKompetisiNominationsIdSummary | GET /kompetisi/{komId}/nomination/{nomId}/summary | Daftar Peserta Nominasi Summay |
KompetisiApi | postKompetisiIdJudge | POST /kompetisi/{komId}/judge | Registrasikan Juri |
KompetisiApi | postKompetisiIdJudgement | POST /kompetisi/{komId}/nomination/{nomId}/judgement | Input Nilai Penjurian |
KompetisiApi | postKompetisiIdNomination | POST /kompetisi/{komId}/nomination | Tambah Nominasi |
KompetisiApi | postKompetisiNominationId | POST /kompetisi/{komId}/participant | Registrasi Peserta |
KompetisiApi | postKompetisiNominationsIdParticipant | POST /kompetisi/{komId}/nomination/{nomId} | Daftarkan peserta ke nominasi |
KompetisiApi | putKompetisiIdJudgement | PUT /kompetisi/{komId}/nomination/{nomId}/judgement | Update Nilai Penjurian |
KompetisiApi | putKompetisiIdNomination | PUT /kompetisi/{komId}/nomination | Edit Nominasi |
KompetisiApi | putKompetisiNominationId | PUT /kompetisi/{komId}/participant | Ubah Peserta |
UserApi | forgotUser | POST /forgot | Forgot |
UserApi | getUsers | GET /users | List Users Admin Only |
UserApi | loginFacebookUser | POST /login-facebook | Login Facebook |
UserApi | loginUser | POST /login | Login |
UserApi | newPasswordUser | PUT /new-password | Create New Password |
UserApi | putUsers | PUT /users | Sunting Role User Admin Only |
UserApi | registerUser | POST /register | Register |
UserApi | sendOtpUser | POST /send-otp | Kirim OTP |
UserProfileApi | getProfile | GET /profile | Get Profile |
UserProfileApi | putPasswordUser | PUT /change-password | Create New Password |
UserProfileApi | putProfile | PUT /profile | Edit Profile |
- RequestAddNominasi
- RequestChangeRole
- RequestEditNominasi
- RequestJudgeKompetisi
- RequestJudgeNominasi
- RequestKompetisiDetail
- RequestKompetisiNominasiPartisipant
- RequestRegisterKompetisiByNominasi
- RequestUserEmail
- RequestUserEmailPassword
- RequestUserOtp
- RequestUserPassword
- RequestUserRegister
- RespondGlobal
- RespondJudgeNominasi
- RespondJudgeNominasiDataInner
- RespondKompetisiDetail
- RespondKompetisiDetailData
- RespondKompetisiList
- RespondKompetisiListDataInner
- RespondKompetisiNominationDetail
- RespondKompetisiNominationDetailData
- RespondKompetisiNominationDetailDataJudgesInner
- RespondKompetisiNominationList
- RespondKompetisiNominationListDataInner
- RespondKompetisiParticipants
- RespondKompetisiParticipantsDataInner
- RespondUser
- RespondUserData
- RespondUserEmail
- RespondUserEmailData
- RespondUsers
- RespondUsersDataInner
- RespondUsersJudge
- RespondUsersJudgeDataInner
Authentication schemes defined for the API:
- Type: HTTP basic authentication