Connfa!
Open Source iOS & Android App for Conferences and Events

    API / getTypes

    Method returns custom types used to identify an event.

    Types could be described by “Speech”, “Type 1”, “Type 2” etc.

    Title get Types
    Url BASE_URL + / + getTypes
    Method GET
    Params NO
    Error Response HTML error response

    Success Response

    Array of type objects.

      
    {
       "types": [
             {"typeID": 1,...},
             {"typeID": 2,...},
             {"typeID": 3,...}
         ]
    }
      
    

    A JSON type is an object structured in the following way:

    Property Type Description
    typeId integer A unique and immutable ID of a type
    typeName string Name of the type
    typeIconURL string  
    order real used for sorting
    deleted BOOL true - object should be deleted on mobile device

    Response Sample

      
    {
       "types": [
         {
           "typeID": 0,
           "typeName": "Speach",
           "typeIconURL": "",
           "order": 0.5,
           "deleted": false
         },
         {
           "typeID": 1,
           "typeName": "Speach of day",
           "typeIconURL": "",
           "order": 1,
           "deleted": false
         },
         {
           "typeID": 2,
           "typeName": "Coffe break",
           "typeIconURL": "",
           "deleted": false
         },
         {
           "typeID": 3,
           "typeName": "Lunch",
           "typeIconURL": "",
           "deleted": false
         }
       ]
     }