ctosy (beta)
Application API:

Ectosy.com has several API capabilities. Under the Options icon ≡ click on the Keys option to generate an API key for a specific API user.

API url: https://azt6ub9d2m.execute-api.eu-central-1.amazonaws.com/prod/api

Headers Content-Type: application/json

Headers x-api-key: SECRET-API-KEY

Currently there are 3 API resources:

-------------------------------------

1. /resources (method GET) - lists all users' positions

example: https://azt6ub9d2m.execute-api.eu-central-1.amazonaws.com/prod/api/resources

response: [{positionId: string, positionTitle: string}, {positionId: string, positionTitle: string}]

-------------------------------------

2. /period (methods POST and DELETE) - saves/deletes a reservation

2.1. example (POST):

body: {positionId: string (result of previous /resource GET), apiUserTitle: string, start: yyyy-mm-dd, end: yyyy-mm-dd, customers: JSON.stringified [{name:string, surname: string}, {name:string, surname: string}]

response: {periodId: string, customers: [{name: string, surname: string, customerId: string}, {name: string, surname: string, customerId: string}], appliedPrice: number, appliedCurrency: string}

2.2. example (DELETE):

body: {periodId: string}

response: [{customerId: string, surname: string, name: string}]

-------------------------------------

3. /customers (method PUT) - update name or surname of a guest in the existing period

example (POST): https://azt6ub9d2m.execute-api.eu-central-1.amazonaws.com/prod/api/customers

body: [{customerId: string, name: string (new name), surname: string (new surname)}]

response: {res: ok}

-------------------------------------

Home
Application API:

Ectosy.com has several API capabilities. Under the Options icon ≡ click on the Keys option to generate an API key for a specific API user.

API url: https://azt6ub9d2m.execute-api.eu-central-1.amazonaws.com/prod/api

Headers Content-Type: application/json

Headers x-api-key: SECRET-API-KEY

Currently there are 3 API resources:

-------------------------------------

1. /resources (method GET) - lists all users' positions

example: https://azt6ub9d2m.execute-api.eu-central-1.amazonaws.com/prod/api/resources

response: [{positionId: string, positionTitle: string}, {positionId: string, positionTitle: string}]

-------------------------------------

2. /period (methods POST and DELETE) - saves/deletes a reservation

2.1. example (POST):

body: {positionId: string (result of previous /resource GET), apiUserTitle: string, start: yyyy-mm-dd, end: yyyy-mm-dd, customers: JSON.stringified [{name:string, surname: string}, {name:string, surname: string}]

response: {periodId: string, customers: [{name: string, surname: string, customerId: string}, {name: string, surname: string, customerId: string}], appliedPrice: number, appliedCurrency: string}

2.2. example (DELETE):

body: {periodId: string}

response: [{customerId: string, surname: string, name: string}]

-------------------------------------

3. /customers (method PUT) - update name or surname of a guest in the existing period

example (POST): https://azt6ub9d2m.execute-api.eu-central-1.amazonaws.com/prod/api/customers

body: [{customerId: string, name: string (new name), surname: string (new surname)}]

response: {res: ok}

-------------------------------------