Skip to content

Commit

Permalink
add gnetz endpoints used by gruene api
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoHadouken committed Dec 14, 2024
1 parent 9c00a40 commit 9f75b1d
Show file tree
Hide file tree
Showing 9 changed files with 1,216 additions and 28 deletions.
818 changes: 818 additions & 0 deletions data/gnetz-tags.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/profiles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
78 changes: 53 additions & 25 deletions data/users.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,59 @@
[
{
"toType": "SamlSynchronizationPartyTO",
"id": "100000",
"ownerIdentifier": "10903700",
"ownerId": "9373",
"createdOn": "2015-04-01T12:00:00+0200",
"lastModifiedOn": "2024-11-01T13:00:00+0100",
"memberships": [
{
"toType": "SamlSynchronizationMembershipTO",
"id": "5600812",
"ownerIdentifier": "10903700",
"memberOfStructureIdentifier": "10903700"
}
"toType": "SamlSynchronizationPartyTO",
"id": "100000",
"personalId": "100",
"ownerIdentifier": "10903700",
"ownerId": "9373",
"createdOn": "2015-04-01T12:00:00+0200",
"lastModifiedOn": "2024-11-01T13:00:00+0100",
"memberships": [
{
"toType": "SamlSynchronizationMembershipTO",
"id": "5600812",
"ownerIdentifier": "10903700",
"memberOfStructureIdentifier": "10903700",
"joinedAt": "2024-01-01T12:33:41.123Z",
"exitedAt": null
}
],
"roles": [
{
"toType": "SamlSynchronizationRoleAssignmentTO",
"id": "21980056",
"ownerIdentifier": "10903700",
"tags": null,
"roleId": "585153",
"delegatedByOrganizationIdentifier": null
}
],
"name1": "John",
"name2": "Doe",
"email": "[email protected]",
"achievements": ["Silberne Sonnenblume"],
"formValues": {
"emails": ["[email protected]"],
"phoneNumbers": [
{
"id": "12345",
"country": "+49",
"number": "17712341234"
}
],
"roles": [
{
"toType": "SamlSynchronizationRoleAssignmentTO",
"id": "21980056",
"ownerIdentifier": "10903700",
"tags": null,
"roleId": "585153",
"delegatedByOrganizationIdentifier": null
}
"messengers": [
{
"id": "123456",
"type": "threema",
"externalId": "GAvh15G12512125H"
}
],
"name1": "John",
"name2": "Doe",
"email": "[email protected]"
"socialMedia": [
{
"id": "123457",
"type": "facebook",
"url": "https://twitter.com/johndoe"
}
]
}
}
]
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"dependencies": {
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-async-handler": "^1.2.0"
"express-async-handler": "^1.2.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"nodemon": "^3.1.4"
Expand Down
4 changes: 4 additions & 0 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { anyV1Router } from './routers/any-v1-router.js'
import { gnetzV2Router } from './routers/gnetz-v2-router.js'
import { samlRouter } from './routers/saml-router.js'

const SHERPA_API_BASE_PATH = '/sherpa/ws/m2m'
Expand All @@ -16,4 +17,7 @@ export function initializeRoutes(app) {

// any api router
app.use(`${SHERPA_API_BASE_PATH}/any/v1`, anyV1Router)

// gnetz router
app.use(`${SHERPA_API_BASE_PATH}/gnetz/v2`, gnetzV2Router)
}
Loading

0 comments on commit 9f75b1d

Please sign in to comment.