Skip to content

Commit 4794271

Browse files
authored
Merge pull request #6 from CogitoNTNU/5-create-temp-models-for-user-applications-v26
Create a temporary solution for project applications
2 parents f4f3b14 + d58ed38 commit 4794271

Some content is hidden

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

54 files changed

+1038
-363
lines changed

.example.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ENVIRONMENT=DEVELOPMENT
2+
ADMIN_TOKEN=

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func main() {
1414
}
1515
}()
1616

17-
if (err != nil) {
17+
if err != nil {
1818
panic(err)
1919
}
2020

cmd/migrations/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"github.com/CogitoNTNU/cogi-go/internal/repository/db"
99
_ "github.com/CogitoNTNU/cogi-go/internal/repository/db"
1010
"github.com/CogitoNTNU/cogi-go/internal/util/env"
11-
"github.com/sirupsen/logrus"
1211
"github.com/golang-migrate/migrate/v4"
1312
"github.com/golang-migrate/migrate/v4/database/postgres"
1413
_ "github.com/golang-migrate/migrate/v4/source/file"
14+
"github.com/sirupsen/logrus"
1515
)
1616

1717
func main() {

docs/api/yaak.ev_GLT8qK64kS.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
type: environment
2+
model: environment
3+
id: ev_GLT8qK64kS
4+
workspaceId: wk_rxdC9r7YRV
5+
createdAt: 2026-01-18T22:28:35.608558
6+
updatedAt: 2026-01-18T23:21:26.173735
7+
name: Global Variables
8+
public: true
9+
base: true
10+
parentModel: workspace
11+
parentId: null
12+
variables:
13+
- enabled: true
14+
name: url
15+
value: ''
16+
id: FwTcDvBhtQ
17+
color: null
18+
sortPriority: 0.0

docs/api/yaak.ev_rVTw7ok8E2.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
type: environment
2+
model: environment
3+
id: ev_rVTw7ok8E2
4+
workspaceId: wk_rxdC9r7YRV
5+
createdAt: 2026-01-18T22:27:31.411654
6+
updatedAt: 2026-01-18T23:21:50.888540
7+
name: Production
8+
public: true
9+
base: false
10+
parentModel: environment
11+
parentId: null
12+
variables:
13+
- enabled: true
14+
name: url
15+
value: https://backend.cogito-ntnu.no
16+
id: Q5g3VDTBqW
17+
color: var(--danger)
18+
sortPriority: 0.0

docs/api/yaak.fl_G5jfP9bvDh.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type: folder
2+
model: folder
3+
id: fl_G5jfP9bvDh
4+
createdAt: 2026-01-18T20:56:33.035627
5+
updatedAt: 2026-01-18T20:56:33.035628
6+
workspaceId: wk_rxdC9r7YRV
7+
folderId: null
8+
authentication: {}
9+
authenticationType: null
10+
description: ''
11+
headers: []
12+
name: Temporary Member Application
13+
sortPriority: -1768769793034.0

docs/api/yaak.fl_hz6Gfn23d4.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type: folder
2+
model: folder
3+
id: fl_hz6Gfn23d4
4+
createdAt: 2026-01-18T20:55:11.156484
5+
updatedAt: 2026-01-18T20:55:11.156486
6+
workspaceId: wk_rxdC9r7YRV
7+
folderId: null
8+
authentication: {}
9+
authenticationType: null
10+
description: ''
11+
headers: []
12+
name: Actuator
13+
sortPriority: -1768769711155.0

docs/api/yaak.rq_5xccnvKag4.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
type: http_request
2+
model: http_request
3+
id: rq_5xccnvKag4
4+
createdAt: 2026-01-18T20:55:14.522443
5+
updatedAt: 2026-01-18T20:56:13.226840
6+
workspaceId: wk_rxdC9r7YRV
7+
folderId: fl_hz6Gfn23d4
8+
authentication: {}
9+
authenticationType: null
10+
body: {}
11+
bodyType: null
12+
description: ''
13+
headers: []
14+
method: GET
15+
name: Healthcheck
16+
sortPriority: -0.0002
17+
url: ${[ url ]}/healthz
18+
urlParameters: []

docs/api/yaak.rq_9C5TCC6ozH.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ type: http_request
22
model: http_request
33
id: rq_9C5TCC6ozH
44
createdAt: 2025-10-14T17:20:24.841512
5-
updatedAt: 2025-10-14T17:22:18.570977
5+
updatedAt: 2026-01-18T20:56:50.560219
66
workspaceId: wk_rxdC9r7YRV
77
folderId: fl_gSXKyrVHCE
88
authentication: {}

docs/api/yaak.rq_BT7899tci6.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
type: http_request
2+
model: http_request
3+
id: rq_BT7899tci6
4+
createdAt: 2026-01-18T20:56:36.724717
5+
updatedAt: 2026-01-18T23:52:51.505415
6+
workspaceId: wk_rxdC9r7YRV
7+
folderId: fl_G5jfP9bvDh
8+
authentication: {}
9+
authenticationType: null
10+
body:
11+
text: |-
12+
{
13+
"FirstName": "Simon Sandvik",
14+
"LastName": "Lee",
15+
"Email": "[email protected]",
16+
"PhoneNumber": "48393554",
17+
"Projects": ["Hello", "neighbour"],
18+
"ApplicationText": "Please let me in"
19+
}
20+
bodyType: application/json
21+
description: ''
22+
headers:
23+
- enabled: true
24+
name: Content-Type
25+
value: application/json
26+
id: 3r6G5MkQSR
27+
method: POST
28+
name: Create
29+
sortPriority: -0.0001
30+
url: ${[ url ]}/api/temp-member-application
31+
urlParameters: []

0 commit comments

Comments
 (0)