damn_server.api

Web app serving JSON API.

API documentation, used for the development of clients, is generated automatically.

This module processes user’s input in the form of GET, POST, and PUT requests, and translates these requests to calls to the procedures of area, list_of, new, square, and user modules.

Functions

area_geometry(aid)

authorized_by_openstreetmap_so_create_and_store_token(...)

OpenStreetMap authorization process redirects to this endpoint.

create_area(ca[, b])

create_new_commit_to_the_area(aid, c[, b])

dn(b)

Return display name from the authorization bearer.

list_of_area_commits(aid[, since, before, after])

list_of_area_managers(aid)

list_of_area_mappers(aid)

list_of_area_squares(aid[, lt, ge])

list_of_area_updates(aid[, since, before, after])

list_of_geometries([since, including_archived])

list_of_square_commits(aid, sid[, since, ...])

list_of_thin_areas([since, including_archived])

list_of_user_commits(display_name[, since, ...])

load_area(aid)

redirect_to_openstreetmap_for_authorization(...)

Authorization starts here.

retrieve_stored_token(token_identifier)

Retrieve the JWT paired to your temporary identifier.

shutdown()

Close database pool after the application shutdown.

square_gpx(aid, sid)

square_tmp(aid, sid)

startup()

Init database pool before the application start.

update_area(aid, ua[, b])

update_user(display_name, u[, b])

Classes

Good

Structure containing detail string Good.

Token

Structure containing JWT token.