Evaluating developed film densities
$ git clone https://github.com/filmtools/api
$ cd api
$ composer install
This chapter outlines the basic functionality of the RESTful FilmTools API. Please note, they're not fully (if even) implemented right now.
Creates a new developing instance on the server, and returns a Location header to the resource created.
Request body:
{
film: string,
developer: string,
exposureIndex: int,
time: int,
zones: float[],
densities: float[]
}
Response:
201 Created
Location: /developings/42
Returns the JSON representation of the given developing, including all calculated developing parameters.
Response body:
{
film: string,
developer: string,
exposureIndex: int,
time: int,
processing: string,
N: float,
zones: float[],
densities: float[],
offset: float,
gamma: float
}
Creates a new test suite on the server, and returns a Location header to the resource created.
Request body:
{
film: string,
developer: string,
developings: [
{
exposureIndex: int,
time: int,
zones: float[],
densities: float[]
},
{
exposureIndex: 400,
time: 600,
zones: [ 0, 1, 2, ... ],
densities: [ 0.00, 0.10, 0.17, ... ]
},
...
]
}
Response:
201 Created
Location: /testsuites/42
Response body:
{
developer: string,
film: string,
developings: developing[],
normalTime: int
}
Returns an array with all JSON representations of the developings belonging to this testsuite.
Response body:
[
{
exposureIndex: int,
time: int,
zones: float[],
densities: float[],
processing: string,
N: float,
gamma: float,
offset: float,
},
{
exposureIndex: 400,
time: 800,
zones: [ 0, 1, 2, ... ],
densities: [ 0.00, 0.10, 0.17, ... ],
processing: "push",
N: 1.41,
gamma: 0.55,
offset: -0.25
},
...
]
$ vendor/bin/phpunit