An API to access an SQLite DB on a raspberry that manages my film rolls so i can find the photos i took.
Multiple endpoints are available.
Returns a JSON with 200
Returns a list of all Films (as in brands) Response:
{
"status": 200,
"message": "",
"films": [
{
"id": 123,
"name": "Ilford HP5+",
"ISO": 400,
"development_info": "",
"type": 1,
"format": 1
}
]
}Returns a single film (as in brand) Response:
{
"status": 200,
"message": "",
"films": {
"id": 123,
"name": "Ilford HP5+",
"ISO": 400,
"development_info": "",
"type": 1,
"format": 1
}
}Returns all the film rolls stored. Response:
{
"status": 200,
"message": "",
"filmrolls": [
{
"film": {
"id": 123,
"name": "Ilford HP5+",
"ISO": 400,
"development_info": "",
"type": 1,
"format": 1
},
"pictures": [123, 124, 125],
"status": 3,
"camera": "Olympus OM2n",
"identifier": "Archival Identifier",
"db_id": 123
}
]
}Returns a single film roll Response:
{
"status": 200,
"message": "",
"id": 123,
"film": {
"id": 123,
"name": "Ilford HP5+",
"ISO": 400,
"development_info": "",
"type": 1,
"format": 1
},
"pictures": [123, 124, 125],
"filmroll_status": 3,
"camera": "Olympus OM2n",
"identifier": "Archival Identifier"
}Returns a single image details with the image encoded in Base64 in JPEG format. Response:
to be definedAdds a new film brand. Request:
{
"name": "Lomography Berlin Kino",
"iso": 400,
"development_info": "ISO 100 pull gives a thick grain",
"type": 1,
"format": 1
}Response:
{
"status": 200,
"message": ""
}Alters a film stock with the given data. Request:
{
"name": "Lomography Berlin Kino",
"iso": 400,
"development_info": "ISO 100 pull gives a thick grain",
"type": 1,
"format": 1
}Response:
{
"status": 200,
"message": "Film roll {id} has been updated successfully"
}Adds a new image with details. HTTP Form Request:
- file: contains image file (currently only
image/jpegis supported) - req: contains json formatted as follows Request:
{
"description": "",
"location": "",
"aperture": "1.4",
"shutter_speed": "1/1000",
"posted": false,
"printed": false
}Response:
{
"status": 200,
"message": "",
"picture_id": 123
}Adds a new film roll. Request:
{
"camera": "Olympus Pen EE",
"film": 123,
"identifier": "Archival identifier",
"pictures": [123, 124, 125],
"status": 5
}Response:
{
"status": 200,
"message": "",
"filmroll_id": 123
}Deletes permanently the specified film ID. Do note that any film roll referencing the stock to delete will also be permanently deleted with no way of recovering them. This means that any picture in those film rolls will also be removed. Response:
{
"status": 200,
"message": "Film stock deleted successfully",
"deleted_item": {
"name": "Lomography Berlin Kino",
"iso": 400,
"development_info": "ISO 100 pull gives a thick grain",
"type": 1,
"format": 1
}
}A value of 0 is always to be considered undefined.
- 35mm
- 120
- 127
- 110
- Sheet film
- Black and White Panchromatic
- Black and White Orthochromatic
- Color
- Infrared
- In camera
- To be developed
- Developed
- Scanned
- Archived