This repository was archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
GET get_ftp_configuration
jokil123 edited this page Feb 12, 2022
·
2 revisions
This route will retrieve an ftp configuration.
HTTP Verb: GET
/get_ftp_configuration/<id_type>/<id>
-
what type of id you would like to use to retrieve the ftp configuration. Allowed values are:
ftp_id,server_idorcp_id(city_project_id). -
the id (Primary key) of the row you would like to retrieve.
-
the request must include a header
authorization. Its value must be the API key you have been given. Every key has access to all get routes and ownership of rows is not enforced.
If the request succeeds the API will respond with an ftp_configuration JSON object of the following shape:
{
"id": number,
"schematic_path": string | null,
"address": string,
"port": number,
"is_ftp": number, (literally why is this not a boolean)
"username": string,
"password": string
} - This status code will be returned if the request suceeds. It will always be sent along with the response data.
-
This status code will be returned if either the auth header is missing or
id_typeis not one of the allowed values. - This status code will be returned if the API key is invalid