auberjeune.md-genos.com Open in urlscan Pro
172.232.43.167  Public Scan

URL: https://auberjeune.md-genos.com/
Submission: On October 15 via api from US — Scanned from FR

Form analysis 0 forms found in the DOM

Text Content

User
Sign in : /api/login_check GET
Body :

Json{
    "username": "your email",
    "password": "your email"
}   

Data send back :

Json{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MjgwNzAzMTEsImV4cCI6MTcyODQzMDMxMSwicm9sZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfVVNFUiJdLCJ1c2VybmFtZSI6Im1leSJ9.DqW5kXcBBIdovh5Jv7pz7p9R61ydZtW5V-puOYFpc0Idcmd_cgBQh8Hwh8MDOHvH4avrwV2_QmHRrYYpmvWmRhL99_1ukcU4ltuI_h8yUtc-tQ-dd-vf94CsreOtJ_FIs27CnHODx20JzQkKG9XNmjW8GhV02aIjFjXVm_3HlgoSoY_mjxs3FUHd1_K0-73dbXnKQc44onNATm-BeC12oWCuUm8UPNXoL71LXw6CD91duK6eSs53E165jHXFJTLHW3lS5UPKksPSHHQJq_YEBXusnA1LEP-L3NydRLiWTegjPpd7Fh8DPODNXlOTpQ7PSb-YAHJbpU6rCxqgFw-A4g"
}   

Authentication token ? No
Sign up : /register POST
Body :

Json{
    "email": "jeanluc@gmail.com",
    "password": "jeanLucLeSuperH\u00e9ro",
    "firstName": "Jean",
    "lastName": "DEBOIT",
    "profession": "housekeeper",
    "phoneNumber": "078265253125"
}   

Data send back :

Json{
    "id": 10,
    "email": "jeanluc@gmail.com",
    "roles": [
        "ROLE_USER"
    ],
    "firstName": "Jean",
    "lastName": "DEBOIT",
    "website": null,
    "profession": "housekeeper",
    "phoneNumber": "078265253125"
}   

Authentication token ? No
Get employees : /api/users GET
Body : No body
Data send back :

Json{
    "id": 5,
    "email": "email",
    "roles": [
        "ROLE_USER"
    ],
    "firstName": "string",
    "lastName": "string",
    "website": "string",
    "profession": "string",
    "phoneNumber": "string"
}   

Authentication token ? Yes
edit one user if you are admin : /api/user/edit/{id} PUT
Body :

Json{
    "username": "email",
    "firstName": "string",
    "lastName": "string",
    "website": "string",
    "profession": "string",
    "phoneNumber": "string"
}   

Data send back :

Json{
    "id": 5,
    "email": "email",
    "roles": [
        "ROLE_USER"
    ],
    "firstName": "string",
    "lastName": "string",
    "website": "string",
    "profession": "string",
    "phoneNumber": "string"
}   

Authentication token ? Yes

--------------------------------------------------------------------------------

Room
Get Rooms : /api/rooms GET
Body :

Json{
    "id": 36,
    "name": "Room 0",
    "hasPrivateShowerroom": false,
    "hasLocker": false,
    "isPrivate": false,
    "beds": [
        {
            "id": 217,
            "isDunkBed": false,
            "isSittingApart": false,
            "state": "inspected",
            "number": 0,
            "cleanedBy": null,
            "inspectedBy": null
        },
        "..."
    ]
}   

Data send back : No data send back
Authentication token ? Yes
New Room : /api/room/new POST
Body :

Json{
    "name": "Name of room",
    "hasLocker": false,
    "private": false,
    "hasPrivateShowerroom": false
}   

Data send back :

Json"The room created"   

Authentication token ? Yes
Edit Room : /api/room/edit/{id} PUT
Body :

Json{
    "name": "Changed name",
    "hasLocker": false,
    "private": false,
    "hasPrivateShowerroom": false
}   

Data send back :

Json"The room modified"   

Authentication token ? Yes
Remove room and its beds : /api/room/remove/{id} DELETE
Body : No body
Data send back :

Json"ok if it's done"   

Authentication token ? Yes

--------------------------------------------------------------------------------

Bed
Get one bed : /api/bed/get/{id} GET
Body : No body
Data send back :

Json{
    "id": 13,
    "isDunkBed": false,
    "isSittingApart": true,
    "state": "cleaned",
    "room": {
        "id": 6,
        "name": "room1",
        "hasPrivateShowerroom": false,
        "hasLocker": false,
        "isPrivate": false
    }
}   

Authentication token ? Yes
New bed : /api/bed/new POST
Body :

Json{
    "dunkBed": false,
    "sittingApart": false,
    "state": "blocked, cleaned, inspected, notcleaned ",
    "room": "the ID of room (int)"
}   

Data send back :

Json"The bed created"   

Authentication token ? Yes
Edit bed : /api/bed/edit/{id} PUT
Body :

Json{
    "dunkBed": false,
    "sittingApart": false,
    "state": "  blocked, cleaned, inspected, notcleaned ",
    "room": "the ID of room (int)"
}   

Data send back :

Json{
    "id": 13,
    "isDunkBed": false,
    "isSittingApart": true,
    "state": "cleaned",
    "room": {
        "id": 6,
        "name": "the name of room",
        "hasPrivateShowerroom": false,
        "hasLocker": false,
        "isPrivate": false
    }
}   

Authentication token ? Yes
Remove bed : /api/remove/{id} DELETE
Body : No body
Data send back :

Json"ok if it's deleted"   

Authentication token ? Yes
Turn bed status on inspected : /api/bed/inspect/{id} PATCH
Body : No body
Data send back :

Json"ok if it's done"   

Authentication token ? Yes
Turn bed status on cleaned : /api/bed/clean/{id} PATCH
Body : No body
Data send back :

Json"ok if it's done"   

Authentication token ? Yes
Edit status of bed : /api/edit/status/{id} PATCH
Body :

Json{
    "status": "  blocked, cleaned, inspected, notcleaned "
}   

Data send back :

Json"ok if it's done"   

Authentication token ? Yes