Skip to content

Latest commit

 

History

History
106 lines (71 loc) · 2.69 KB

APIAPI.md

File metadata and controls

106 lines (71 loc) · 2.69 KB

APIAPI

All URIs are relative to https://api.lamp.digital

Method HTTP request Description
aPIQuery POST / Query the LAMP Database.
aPISchema GET / View the API schema document.

aPIQuery

    open class func aPIQuery(body: String, completion: @escaping (_ data: Any?, _ error: Error?) -> Void)

Query the LAMP Database.

Query the LAMP Database using a transformation document. All GET operations in this API schema document are available by replacing the period with an underscore (i.e. $Participant_view(...) instead of Participant.view(...)). The origin, from, and to parameters of EventStream functions are preserved but the transform parameter is not.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import LAMP

let body = "body_example" // String | 

// Query the LAMP Database.
APIAPI.aPIQuery(body: body) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
body String

Return type

Any

Authorization

Authorization

HTTP request headers

  • Content-Type: text/plain, application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aPISchema

    open class func aPISchema(completion: @escaping (_ data: Any?, _ error: Error?) -> Void)

View the API schema document.

View this API schema document from a live server instance.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import LAMP


// View the API schema document.
APIAPI.aPISchema() { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

Any

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]