-
Notifications
You must be signed in to change notification settings - Fork 14
API Reference
The MBP REST API is documented using the OpenAPI specification. The OpenAPI document is created automatically and can be accessed when the MBP is started. A Swagger UI is also automatically created and available when the MBP is running.
- OpenAPI document:
http://[MBP-Host]:8080/MBP/v2/api-docs
- Swagger UI:
http://[[MBP-Host]:8080/MBP/swagger-ui.html
As the admin
user, it is also possible to access them through Main Navigation > Settings > REST API Documentation
.
Most endpoints of the API are restricted to authenticated users and cannot be used anonymously. Formerly, authentication was possible by extending the HTTP headers of all requests with fields related to basic HTTP authentication, i.e. username and password of a user as base64-encoded string. Since Pull Request #588 however, authentication is only possible via cookies carrying valid session IDs. In order to authenticate yourself as a registered user onthe MBP via the REST API, please follow the subsequently listed steps:
- Execute the login request by providing the username and the password of the registered user that is supposed to be authenticated:
curl 'http://192.168.221.230:8888/deploy/user_sessions/api/users/login' \ --data-raw '{"username":"admin","password":"12345"}'
Universität Stuttgart - MBP Team 🔧