openreplay/backend/services/http
2022-02-09 18:19:58 +01:00
..
geoip feat: init backend 2021-05-03 17:53:25 +02:00
uaparser feat: init backend 2021-05-03 17:53:25 +02:00
assets.go feat(backend): topic redirections 2021-11-10 17:04:45 +01:00
handlers.go feat(backend): topic redirections 2021-11-10 17:04:45 +01:00
handlers_depricated.go log(backend): log on each service start 2021-07-23 18:15:17 +08:00
handlers_ios.go dev(backend-http): ios-image logs 2021-11-22 18:29:51 +01:00
handlers_web.go feat (backend): insert userID on SessionStart 2022-01-23 18:57:06 +01:00
ios_device.go feat: init backend 2021-05-03 17:53:25 +02:00
main.go feat(backend): changed logs 2022-02-09 18:19:58 +01:00
project_id.go feat: init backend 2021-05-03 17:53:25 +02:00
README.md Fix typos (#15) 2021-06-04 11:02:53 +02:00
response.go feat(backend-http): Content-Type header for json responses 2021-10-22 19:06:07 +02:00
uuid.go feat: init backend 2021-05-03 17:53:25 +02:00

HTTP Endpoints

Start Mobile Session

POST /v1/ios/start

Request

application/json

* - required
{
	projectID*  			number  // Encoded ProjectID
	trackerVersion*   string  // Tracker version string
	revID             string  // Set by user
	userUUID          string  // User ID, should be derived from local storage connected to user
	userOSVersion     string 
	userDevice        string
	userDeviceType    number  //
	performance       // 
}

Response

200 application/json
{
	imagesHashList  // list of most friquently used image hash strings
	token           // Authorisation token to use in other requests (Bearer)
	userUUID        // Should be stored in local storage
}

Push message batch

POST /v1/ios/append

Request

application/octet-stream

<binary encoded messages>

Response

200 OK

OR

401 Unauthorised - token timed out. Start new session

Push late message batch (after app reload - crashes etc.)

POST /v1/ios/late

Request

application/octet-stream

<binary encoded messages>

Response

200 OK

Push images

POST /v1/ios/images

Request

multipart/form-data values: projectID [required] // Encoded ProjectID

Binary files with the hash-filename in the filename header each.

Response

200 OK