UU Networking Sample API

Local backend for the UUSwiftNetworking and UUKotlinNetworking sample apps.

Authentication

Sign in with Silverpine SSO in the mobile sample app, then call this API with the returned bearer token:

Send Authorization: Bearer <token> on protected routes. By default the server validates opaque access tokens through SSO /userinfo. Set SSO_AUTH_MODE=introspect to validate through SSO /introspect instead.

Endpoints

GET  /health
GET  /docs
GET  /api/me
GET  /api/notes
POST /api/notes
GET  /api/notes/{id}
PUT  /api/notes/{id}
DELETE /api/notes/{id}

Sample flow

curl https://uu-networking.spsw.io/health

curl https://uu-networking.spsw.io/api/me \
  -H "Authorization: Bearer ACCESS_TOKEN_FROM_SSO"

curl https://uu-networking.spsw.io/api/notes \
  -H "Authorization: Bearer ACCESS_TOKEN_FROM_SSO" \
  -H "Content-Type: application/json" \
  -d '{"title":"Hello","body":"From the sample app"}'