Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digital-scouts/nami-mockserver
https://github.com/digital-scouts/nami-mockserver
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/digital-scouts/nami-mockserver
- Owner: digital-scouts
- Created: 2023-09-30T12:37:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T17:29:54.000Z (11 days ago)
- Last Synced: 2024-10-24T01:22:05.500Z (11 days ago)
- Language: JavaScript
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-dpsg - NaMi Mockserver - Provides a few endpoints to test own application (NaMi Helper Tools)
README
# discontinued & soon deprecated
# Mockserver für Nami
Access the mockserver at with the sessionStartup endpoint and use 'test' as password and "1234" as username.
The mockserver will return a session token. Use this token in the header of all other requests.
When accessing the mockserver with different credentials, the request will be forwarded to the real nami server. Please do not use real credentials. The mockserver is not secure.
## Demo
A demo is available at
## Requests
Path: /ica/rest/api/1/1/service/nami
1. POST [Url][Path]/auth/manual/sessionStartup
Body (x-www-form-urlencoded):
``` json
{
"Login": "API",
"username": "1234",
"password": "test"
}
```2. GET [Url][Path]/mitglied/filtered-for-navigation/gruppierung/gruppierung/:gruppierungId
2. GET [Url][Path]/mitglied/filtered-for-navigation/gruppierung/gruppierung/:gruppierungId/:memberId
2. GET [Url][Path]/zugeordnete-taetigkeiten/filtered-for-navigation/gruppierung-mitglied/mitglied/:memberId/flist
2. GET [Url][Path]/gruppierungen/filtered-for-navigation/gruppierung/node/1
2. GET [Url]/ica/rest/dashboard/stats/stats## Data
All member data is stored in the memberData.json. Feel free to contribute and add more data via merge request.