Skip to content

Commit 0cef4bf

Browse files
author
funlessdev
committed
1 parent 357b8ef commit 0cef4bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1405
-282
lines changed

.openapi-generator/FILES

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ README.md
55
api/openapi.yaml
66
api_functions.go
77
api_modules.go
8+
api_subjects.go
89
client.go
910
configuration.go
1011
docs/ErrorErrors.md
@@ -22,12 +23,16 @@ docs/MixedResultsDataSinksInner.md
2223
docs/MixedResultsDataSinksMetadata.md
2324
docs/ModelError.md
2425
docs/ModuleName.md
25-
docs/ModuleNameModule.md
2626
docs/ModuleNamesResult.md
2727
docs/ModulesApi.md
2828
docs/SingleFunctionResult.md
2929
docs/SingleModuleResult.md
3030
docs/SingleModuleResultData.md
31+
docs/SingleSubjectResult.md
32+
docs/SingleSubjectResultData.md
33+
docs/SubjectName.md
34+
docs/SubjectNameSubject.md
35+
docs/SubjectsApi.md
3136
git_push.sh
3237
go.mod
3338
go.sum
@@ -45,12 +50,16 @@ model_mixed_results_data_events_metadata.go
4550
model_mixed_results_data_sinks_inner.go
4651
model_mixed_results_data_sinks_metadata.go
4752
model_module_name.go
48-
model_module_name_module.go
4953
model_module_names_result.go
5054
model_single_function_result.go
5155
model_single_module_result.go
5256
model_single_module_result_data.go
57+
model_single_subject_result.go
58+
model_single_subject_result_data.go
59+
model_subject_name.go
60+
model_subject_name_subject.go
5361
response.go
5462
test/api_functions_test.go
5563
test/api_modules_test.go
64+
test/api_subjects_test.go
5665
utils.go

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.3.0-SNAPSHOT
1+
6.4.0-SNAPSHOT

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ Class | Method | HTTP request | Description
8787
*ModulesApi* | [**ListModules**](docs/ModulesApi.md#listmodules) | **Get** /v1/fn | List modules
8888
*ModulesApi* | [**ShowModuleByName**](docs/ModulesApi.md#showmodulebyname) | **Get** /v1/fn/{module_name} | Show module info
8989
*ModulesApi* | [**UpdateModule**](docs/ModulesApi.md#updatemodule) | **Put** /v1/fn/{module_name} | Update module name
90+
*SubjectsApi* | [**CreateSubject**](docs/SubjectsApi.md#createsubject) | **Post** /v1/admin/subjects | Create subject
91+
*SubjectsApi* | [**ListSubjects**](docs/SubjectsApi.md#listsubjects) | **Get** /v1/admin/subjects | List all subjects
9092

9193

9294
## Documentation For Models
@@ -105,11 +107,14 @@ Class | Method | HTTP request | Description
105107
- [MixedResultsDataSinksMetadata](docs/MixedResultsDataSinksMetadata.md)
106108
- [ModelError](docs/ModelError.md)
107109
- [ModuleName](docs/ModuleName.md)
108-
- [ModuleNameModule](docs/ModuleNameModule.md)
109110
- [ModuleNamesResult](docs/ModuleNamesResult.md)
110111
- [SingleFunctionResult](docs/SingleFunctionResult.md)
111112
- [SingleModuleResult](docs/SingleModuleResult.md)
112113
- [SingleModuleResultData](docs/SingleModuleResultData.md)
114+
- [SingleSubjectResult](docs/SingleSubjectResult.md)
115+
- [SingleSubjectResultData](docs/SingleSubjectResultData.md)
116+
- [SubjectName](docs/SubjectName.md)
117+
- [SubjectNameSubject](docs/SubjectNameSubject.md)
113118

114119

115120
## Documentation For Authorization

api/openapi.yaml

+68-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,52 @@ tags:
1212
- name: modules
1313
- name: functions
1414
paths:
15+
/v1/admin/subjects:
16+
get:
17+
description: List all subjects
18+
operationId: list_subjects
19+
responses:
20+
"200":
21+
content:
22+
application/json:
23+
schema:
24+
$ref: '#/components/schemas/module_names_result'
25+
description: An array of subject names
26+
default:
27+
content:
28+
application/json:
29+
schema:
30+
$ref: '#/components/schemas/error'
31+
description: Unexpected error
32+
summary: List all subjects
33+
tags:
34+
- subjects
35+
post:
36+
description: "Create a new subject (name, token)"
37+
operationId: create_subject
38+
requestBody:
39+
content:
40+
application/json:
41+
schema:
42+
$ref: '#/components/schemas/subject_name'
43+
description: Subject to create
44+
required: true
45+
responses:
46+
"200":
47+
content:
48+
application/json:
49+
schema:
50+
$ref: '#/components/schemas/single_module_result'
51+
description: The created subject
52+
default:
53+
content:
54+
application/json:
55+
schema:
56+
$ref: '#/components/schemas/error'
57+
description: Unexpected error
58+
summary: Create subject
59+
tags:
60+
- subjects
1561
/v1/fn:
1662
get:
1763
description: List all modules
@@ -383,10 +429,20 @@ components:
383429
$ref: '#/components/schemas/mixed_results'
384430
description: Mixed response
385431
schemas:
432+
subject_name:
433+
properties:
434+
subject:
435+
$ref: '#/components/schemas/subject_name_subject'
436+
type: object
437+
single_subject_result:
438+
properties:
439+
data:
440+
$ref: '#/components/schemas/single_subject_result_data'
441+
type: object
386442
module_name:
387443
properties:
388444
module:
389-
$ref: '#/components/schemas/module_name_module'
445+
$ref: '#/components/schemas/subject_name_subject'
390446
type: object
391447
single_module_result:
392448
example:
@@ -407,7 +463,7 @@ components:
407463
properties:
408464
data:
409465
items:
410-
$ref: '#/components/schemas/module_name_module'
466+
$ref: '#/components/schemas/subject_name_subject'
411467
type: array
412468
type: object
413469
single_function_result:
@@ -416,7 +472,7 @@ components:
416472
name: name
417473
properties:
418474
data:
419-
$ref: '#/components/schemas/module_name_module'
475+
$ref: '#/components/schemas/subject_name_subject'
420476
type: object
421477
invoke_input:
422478
properties:
@@ -462,13 +518,20 @@ components:
462518
required:
463519
- errors
464520
type: object
465-
module_name_module:
521+
subject_name_subject:
466522
example:
467523
name: name
468524
properties:
469525
name:
470526
type: string
471527
type: object
528+
single_subject_result_data:
529+
properties:
530+
name:
531+
type: string
532+
token:
533+
type: string
534+
type: object
472535
single_module_result_data:
473536
example:
474537
functions:
@@ -480,7 +543,7 @@ components:
480543
type: string
481544
functions:
482545
items:
483-
$ref: '#/components/schemas/module_name_module'
546+
$ref: '#/components/schemas/subject_name_subject'
484547
type: array
485548
type: object
486549
function_create_update_events_inner:

api_functions.go

+19-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_modules.go

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)