Versioning
- shell
- http
- js
- ruby
- python
- java
- go
- response
# You can also use wget
curl -X GET https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file} \
-H 'apikey: APIKEY'
GET https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file} HTTP/1.1
Host: TENANT_NAME.mambu.com
apikey: APIKEY
var headers = {
'apikey':'APIKEY'
};
$.ajax({
url: 'https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file}',
method: 'GET',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
require 'rest-client'
require 'json'
headers = {
'apikey' => 'APIKEY'
}
result = RestClient.get 'https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'apikey': 'APIKEY'
}
r = requests.get('https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file}', params={
}, headers = headers)
print r.json()
URL obj = new URL("https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestProperty("apikey", "APIKEY");
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"apikey": []string{"APIKEY"}
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "https://TENANT_NAME.mambu.com/api/swagger/completejson/{OAS-file}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Example response
{
"swagger": "2.0",
"info": {
"version": "v2",
"title": "clients"
},
"host": "localhost:8889",
"basePath": "/api",
"tags": [
{
"name": "Clients",
"description": "Allows you to retrieve, create, update, or delete clients. Clients may have associated information such as their address, identification documents, or custom field values."
}
],
"schemes": [
"http",
"https"
],
"paths": {
...
},
"securityDefinitions": {
"basic": {
"description": "",
"type": "basic"
}
},
"definitions": {
...
}
}
Mambu API v2 provides a versioning system to assist with backwards compatibility. Contract changes will result in a new version of each affected resource becoming available without the old version immediately becoming obsolete.
Some features documented here may be in beta or part of an Early Access Release for selected customers. This means contract changes without backwards compatibility are still possible. Any such changes will be mentioned in advance in the release notes. For more information about the stages a feature can be in, see Mambu Release Cycle.
Versioning is supported in API requests via the Accept header.
Template: application/vnd.mambu.{version}+json
To retrieve a specific version of an entity, fill a value into the template above.
The highest currently supported version is v2.