Skip to content

Latest commit

 

History

History
47 lines (23 loc) · 1.67 KB

API.md

File metadata and controls

47 lines (23 loc) · 1.67 KB

raspiCamSrv API

Up

The raspiCamSrv API allows access to several RaspberryPi camera functions through WebService endpoints.

Configuration of the API is done on the Settings/API screen.

Postman Test Collection

For testing the API, a Postman collection is available at docs/api/postman which can be downloaded and imported into a Postman instance.

PostmanColl

API Documentation

The docs/api/postman folder contains also the API Documentation generated from Postman.

Variables

The collection uses a set of variables:

PostmanVars

base_url, user and pwd need to be adjusted to the current environment for a user which has been previously created in raspiCamSrv.

access_token and refresh_token will be automatically filled from responses of the /api/login and /api/refresh endpoints.

Usage

1. Login

Use the api login request to log in to raspiCamSrv and receive an Access Token and a Refresh Token

2. Interact with raspiCamSrv

Use any of the GET requests to interact with raspiCamSrv.

These requests use the Access Token for authentication.

3. Refresh the Access Token

If a request returns a token expiration error, refresh the Access Token using the api refresh request.

This will use the Refresh Token for authentication and return a fresh Access Token.