Andreas Granig
1306ba53c6
MT#8561 API: filter write ops for r/o users
11 years ago
Andreas Granig
996fd6000c
MT#8299 API: align PUT for pbxdevicemodels.
...
Use multipart/form-data as we do in POST.
11 years ago
Andreas Granig
a5b0aaee2c
MT#8299 Use extended form for device model
...
Define x, y, linepos via HFH instead of validating it manually.
11 years ago
Andreas Granig
4596002eca
MT#8299 API: create full device model with labels
11 years ago
Andreas Granig
853ab093d5
MT#8299 API: Use multipart upload for device model
11 years ago
Gerhard Jungwirth
789d162414
MT#8367 api fix subscriber delete as reseller
11 years ago
Irka
b59e7bb3df
MT#8367 Remove potentially ambiguous voip_subscribers.status reference
...
Now DBIx uses subqueries for sequential searches so no ambiguity
is present now.
11 years ago
Gerhard Jungwirth
2b4e5d0f61
MT#8309 API billingfees logic
...
is_true is not necessary if not mangled by JSON::Types::bool
11 years ago
Gerhard Jungwirth
edff2c4120
MT#7791 API ccmappingentries (callthrough CLIs)
11 years ago
Irka
f95f158323
MT#5879 Merge with Andreas version of Invoice Template APIs.
11 years ago
Irina Peshinskaya
3b281f61cd
MT#7867 InvoiceTemplate API draft.
11 years ago
Gerhard Jungwirth
9f7f55d07f
MT#8063 api fix uploading music_on_hold
...
in case of customer sound set.
and prevent uploading multiple items of the same set/handle.
11 years ago
Gerhard Jungwirth
6c5f35d159
MT8165 explain cfmappings on callforwards doc
11 years ago
Gerhard Jungwirth
17f092219f
MT#7959 fix contract PUT/PATCH, tests
...
now that type is checked by form, it must be
properly passed by put/patch. Also error message changed.
(cherry picked from commit 526a6c1a19
)
11 years ago
Andreas Granig
63056e4d15
MT#7867 Also add invoice tmpl per customer in API
11 years ago
Gerhard Jungwirth
b0a7f8f2b2
MT#7717 explicitly delete related tables of voip_domains
...
to ensure trigger execution on them
11 years ago
Gerhard Jungwirth
fc4bdaf750
MT#7959 update contracts api doc
11 years ago
Andreas Granig
d74f2653f1
MT#7747 Make sure to not store purge_existing
11 years ago
Andreas Granig
6834738216
MT#7747 API: Improve fee bulk upload documentation
11 years ago
Andreas Granig
c34f5e11a0
MT#7747 API: implement fee bulk upload
...
You can now do a POST to /api/billingfees/?billing_profile_id=xx
with Content-Type text/csv, and it will try to parse and insert
the file like the panel does on file upload.
11 years ago
Andreas Granig
3b0aa836d9
MT#7797 API: allow list in customer status filter
...
Use comma-sparated list to filter for certain stati.
Use not_status filter to exclude certain stati.
11 years ago
Gerhard Jungwirth
54810af842
MT#7447 fix soundfiles controller
...
when we disable log_request in auto, the method,
returns false, which means abort the chained dispatch.
see MT#7067
11 years ago
Andreas Granig
9157588f97
MT#7803 API: fetch invoice details via API
11 years ago
Gerhard Jungwirth
49f14f8e8f
MT#7447 fix api customers test
...
we now show terminated customers by default, so filter for
active ones only. see also MT#7797
11 years ago
Gerhard Jungwirth
6dd1562252
MT#7841 API callforwards: improve documentation examples
11 years ago
Gerhard Jungwirth
b0235d97d1
MT#7841 document api callforwards, cfmappings
11 years ago
Andreas Granig
26ec3aad80
MT#7067 API: Don't log sound file on upload.
11 years ago
Andreas Granig
3f8f4880de
MT#7555 API: Terminate instead of delete subs
11 years ago
Andreas Granig
9115b48f70
MT#7797 Filter for terminated customers.
...
- Allow status=xxx in collection
- Fix moving customercontacts
11 years ago
Andreas Granig
f41626e521
MT#7545 Allow multiple pbx groups per subscriber
11 years ago
Andreas Granig
3845260070
MT#7649 API: Implement create/update for pbx devs
...
Delete is not there yet.
11 years ago
Andreas Granig
7c8e355fbc
MT#7177 API: add /api/applyrewrites/ for rwr.
...
Normalize/denormalize a number based on the subscriber and the
direction.
11 years ago
Andreas Granig
1d26af6afe
MT#7177 Implement callee normalization. WIP.
11 years ago
Andreas Granig
2f06618362
MT#4019 Implement C2D in api via /api/callcontrols
11 years ago
Andreas Granig
7089121482
MT#7377 API: Add filter for is_pbx_pilot.
11 years ago
Andreas Granig
c36a127a97
MT#7495 Add customerpreferences rel and fix doc.
11 years ago
Andreas Granig
151b77692f
MT#7487 API: filter subscribers using profile_id
11 years ago
Andreas Granig
e136be4c68
MT#7485 API: filter soundsets for name
11 years ago
Irina Peshinskaya
9f5bf1ad35
MT#5879 Changes related to invoice email template.
...
All schemas are taken as it was before.
11 years ago
Irina Peshinskaya
6d6484a645
MT#5879 Changes related to invoice email template.
11 years ago
Andreas Granig
6ec99075ca
MT#7471 Implement web and api for contract prefs.
11 years ago
Andreas Granig
69e20a8629
MT#7377 API: fix alias_numbers and pbx_extension
...
Properly handle alias_numbers and pbx_extension fields when
creating or updating a subscriber.
11 years ago
Andreas Granig
e0bb62f82b
MT#7323 API: fetch sound handles via REST
11 years ago
Andreas Granig
1b08f6e3ac
MT#7395 API: implement NCOS level and pattern
...
Manage levels and patterns via REST.
11 years ago
Gerhard Jungwirth
8f5c6d0907
MT#7239 API faxserversettings
11 years ago
Andreas Granig
126cf25581
MT#7405 API: allow to filter folder in voicemails
11 years ago
Andreas Granig
e8853cf869
MT#5349 API: Fix domain activation for xmpp
11 years ago
Andreas Granig
8efa32a98a
MT#7377 Use is_pbx_pilot instead of admin flag
11 years ago
Andreas Granig
b827f73ab4
MT#5879 PoC of generating invoice out of template
...
Rework zone fee handling.
Implement invoice creation (WIP) - still real template data missing.
11 years ago
Andreas Granig
4e3b373df3
MT#7119 API: Fix PBX subscriber creation.
...
Document only rendered form fields.
Expose pbx_extension and others via subscribers form.
11 years ago
Gerhard Jungwirth
71aa24e791
MT#7239 enforce boolean context
...
when updating a JSON::Boolean
11 years ago
Gerhard Jungwirth
1b0f0ead8f
MT#7119 remove redundant collection sort
11 years ago
Gerhard Jungwirth
7a79ad2fec
MT#7211 API autoattendants
11 years ago
Andreas Granig
378f53c806
MT#7191 Use DT to select contact country.
11 years ago
Gerhard Jungwirth
09ac08508b
MT#7119 API document sortable columns
...
for collections, as query parameters
11 years ago
Gerhard Jungwirth
c93c8eeb6d
MT#7119 fix broken soundfilerecordings collection
...
when auto returns false, the catalyst chaining is aborted
11 years ago
Gerhard Jungwirth
83d37c5d23
MT#7119 API order_by for collections
...
most collections support ordering by the column names of
their primary table now
11 years ago
Andreas Granig
388cd7cca3
MT#7175 Skip collection in doc if role unspecified
11 years ago
Gerhard Jungwirth
1eadcf7ea7
MT#3955 API callcosts: filter by subscriber_id
11 years ago
Gerhard Jungwirth
ac74b9774d
MT#3955 API callcosts: GET
11 years ago
Gerhard Jungwirth
7333869c54
MT#7113 API subscribers: provide hunt-policy/timeout
...
for a subscriber with is_pbx_group=true
11 years ago
Gerhard Jungwirth
582b835db6
MT#7067 fix api tests
11 years ago
Andreas Granig
60de7de4a7
MT#7067 API: Implement sound file handling.
...
Create new sound files.
Update sound files.
Delete sound files.
11 years ago
Andreas Granig
aaac4b6415
MT#7067 API: Implement sound set handling.
11 years ago
Andreas Granig
b0993b62b9
MT#3939 API: Implement trusted source handling.
11 years ago
Andreas Granig
1cc0aa69f4
MT#7039 API: link subscriberregistrations
...
- Properly join voip_subscribers and voip_domains
- Link relations to subscriber
11 years ago
Andreas Granig
74d3458e66
MT#7061 API: implement reminder handling.
11 years ago
Andreas Granig
7df32a993b
MT#7039 API: implement SIP registration handling
11 years ago
Andreas Granig
7cbdb2762f
MT#3947 API: Implement voicemail settings.
...
Change email, pin, attach and delete via REST.
11 years ago
Andreas Granig
28ee0960a4
MT#3943 API: fetch cdrs via REST.
...
Allow to filter for subscriber_id and customer_id.
11 years ago
Gerhard Jungwirth
14d6b1db63
MT#6985 API more subscribers filters
...
by customer_id, is_pbx_group, is_admin
11 years ago
Andreas Granig
61eb05dd13
MT#3941 API: fix voicemail filtering.
11 years ago
Andreas Granig
4fe7db30c4
MT#3941 API: Prettify voicemail descriptions.
...
Properly link between the corresponding collections.
11 years ago
Andreas Granig
6e5e1b53c4
MT#3941 API: Implement voicemail message handling.
11 years ago
Gerhard Jungwirth
f7ebfe07c1
MT#3937 API speeddials put/patch
11 years ago
Gerhard Jungwirth
d71f12aff9
MT#3937 API speeddials get
...
collection and item
11 years ago
Gerhard Jungwirth
139dabf562
MT#6827 API pbxdevice* improvements
...
search queries, description and form validation
11 years ago
Gerhard Jungwirth
0de65edace
MT#6827 API pbxdevicemodels GET
11 years ago
Gerhard Jungwirth
313bf84e6a
MT#6827 API pbxdeviceconfigs GET
11 years ago
Gerhard Jungwirth
0430f83d46
MT#6827 API pbxdeviceprofiles GET
11 years ago
Andreas Granig
42031a1627
MT#6913 API: prevent reseller profile deletion.
...
Reject if reseller_edit is disabled in config.
11 years ago
Andreas Granig
f30518384b
MT#6913 API: fix syntax error
11 years ago
Andreas Granig
84cc7c36c9
MT#6913 API: fix profile(_set) deletion.
11 years ago
Andreas Granig
19d6b47796
MT#6913 API: implement profile handling.
11 years ago
Andreas Granig
427bd2e312
MT#6913 API: Basic management of profile sets.
11 years ago
Andreas Granig
3ec2d88bfe
MT#6909 API Check for existance of email tmpl name
...
Make sure to not expose internal error on duplicate email template
name/reseller.
11 years ago
Andreas Granig
954367aad5
MT#6827 Update api description for pbxdevices
11 years ago
Andreas Granig
cd98d27ad7
MT#6909 API: implement email template management.
11 years ago
Andreas Granig
1da7f9a7bc
MT#6789 API: validate email template id
...
Its reseller needs to match the customer contact's reseller.
11 years ago
Andreas Granig
88c6e4d78f
MT#6789 API: handle subscriber email and profile.
...
Handle new email field.
Fix profile handling on subscriber creation.
11 years ago
Andreas Granig
e9d30a3b89
MT#6773 Remove DDP, shortcut for Data::Printer
11 years ago
Andreas Granig
976843e55e
MT#6827 API POST/PUT/PATCH/DELETE of field devices
11 years ago
Gerhard Jungwirth
d2a3348a78
MT#6827 API pbxdevices POST
...
wip
11 years ago
Gerhard Jungwirth
816fbcefb6
MT#6827 API pbxdevices GET
...
wip
11 years ago
Gerhard Jungwirth
2fc4743183
MT#6497 API use billing subscriber id on all places in cf_*_sets
...
that is:
- api/cfdestinationsets
- api/cftimesets
11 years ago
Gerhard Jungwirth
63ac99218e
MT#6497 API cfmappings PUT, PATCH
11 years ago
Gerhard Jungwirth
a11b53aa3e
MT#6497 API cfmappings GET
11 years ago
Gerhard Jungwirth
2dd40a8999
MT#6497 API cftimesets
11 years ago
Gerhard Jungwirth
d4cf98646d
MT#6497 API cfdestinationsets
11 years ago
Gerhard Jungwirth
b343f16e5e
MT#6497 API: edit callforwards
...
we use the billing.voip_subscribers id now (as everywhere else)
11 years ago
Gerhard Jungwirth
fc1c89a7c1
MT#6497 API: get callforwards (simple)
11 years ago
Gerhard Jungwirth
21a5d7ee37
MT#6195 API rwr: Give proper reseller access
...
see also MT#6479
11 years ago
Andreas Granig
861e38b649
MT#6283 Add more query params to existing colls
11 years ago
Andreas Granig
45a42b9b61
MT#6479 API: Allow resellers to access some funcs.
11 years ago
Gerhard Jungwirth
6f368e820f
MT#6195 API: rewriterule/rewriteruleset: DELETE
...
and remove some redundant checks (done by formhandler)
11 years ago
Gerhard Jungwirth
31e6c5fa71
MT#6195 API: ability to handle rules directly in rewriteruleset
11 years ago
Gerhard Jungwirth
c7c1e012a9
MT#6195 API: adapt RewriteRules to search framework
...
see MT#6283
11 years ago
Gerhard Jungwirth
ede3d43a42
MT#6195 API: rewriterule/rewriteruleset: POST
11 years ago
Gerhard Jungwirth
11e421dc08
MT#6195 API: rename rewrite -> rewriterulesets
11 years ago
Andreas Granig
11d83a7ead
MT#6283 Implement search-framework.
...
- let custom roles "derive" from main api role
- have an item_rs in each role
- call search logic after each item_rs call automatically
- render search query doc dynamically
11 years ago
Gerhard Jungwirth
36f2be7689
MT#6195 API: rewrite: GET, PUT and PATCH implemented
11 years ago
Andreas Granig
c61b9eec5d
MT#3933 API: Handle subscriber lock/termination
11 years ago
Andreas Granig
da79426c00
MT#3933 API: Implement subscriber preferences.
...
While at it, combine preference handling for subscribers, domains
and peers into a single role.
11 years ago
Andreas Granig
2f749a341a
MT#3933 API: add subscriber editing via PUT/PATCH
11 years ago
Andreas Granig
0218de9cc0
MT#5833 Update italian translation.
11 years ago
Andreas Granig
1f9e407377
MT#3925 API: more doc and description fixes.
11 years ago
Andreas Granig
2c49abb49e
MT#3925 Add more field descriptions to forms.
11 years ago
Andreas Granig
c799df3ebd
MT#3925 API: dynamically render API documentation.
11 years ago
Andreas Granig
d508a519c8
MT#3933 API: tighten subscriber creation.
11 years ago
Andreas Granig
aef3a499a3
MT#5797 Skip Link hdrs for fetching collections.
...
Too many headers break web servers (and probably UAs).
11 years ago
Andreas Granig
71658e12a7
MT#5599 Rework auth/authz for pwd-based API access
...
Cleanup unnecessary realms.
Use roles instead of realms for authz.
HTTP basic auth for api access.
Use admin/reseller roles instead of api_admin/api_reseller.
Fix API::Root invalid_user detaching.
12 years ago
Andreas Granig
ce01267079
MT#3933 API: Check for max_subscribers on create
12 years ago
Andreas Granig
9651c81852
MT#3933 API: fetch and create subscriber. WIP.
...
Doesn't handle PBX stuff yet, only basic subscriber stuff.
12 years ago
Andreas Granig
5929bcdc06
MT#5349 API: add method to fetch dompref meta data
12 years ago
Andreas Granig
e8fa8b2f9c
MT#5349 API: Implement domain preferences. WIP.
...
Missing sanity checks and special handling for certain preferences.
12 years ago
Andreas Granig
58adac5da9
MT#5349 API: Implement GET/DELETE for domain item.
...
There is no PUT/PATCH as we are not allowed to change the domain itself.
TODO: relations to preferences!
12 years ago
Andreas Granig
9592c6b3b7
MT#5349 API: Implement collection part for doms
12 years ago
Andreas Granig
456df97df0
MT#3931 API: implement customer contract handling.
12 years ago
Andreas Granig
3db6117dfd
MT#3931 API: Implement customer contacts.
...
Move update parts into role.
Implement customer contacts.
12 years ago
Andreas Granig
5c5668da28
MT#3949 API: Implement reseller resource handling.
12 years ago
Andreas Granig
c0a6264507
MT#5299 API: Implement implicit zone def for fees
12 years ago
Andreas Granig
b3de58ff9c
MT#5299 API: Implement billing zone handling.
12 years ago
Andreas Granig
bdb129ec67
MT#5299 API: Add billing fee handling.
12 years ago
Andreas Granig
cd2d9e47aa
MT#5255 Fix boolean handling and HFH validation
12 years ago
Andreas Granig
829b432b47
MT#5299 API: PUT/PATCH/GET billingprofiles item
12 years ago
Andreas Granig
3ce79d6703
MT#5299 API: GET and POST billing profiles.
12 years ago
Andreas Granig
45a460a1ce
MT#3949 API: implement contracts handling.
12 years ago
Andreas Granig
14d9374e8c
MT#3949 API: move common contract stuff to role.
12 years ago
Andreas Granig
b64266b969
MT#3949 API: Implement base-line for sys contracts
...
Allows to post, put, patch and get peering and reseller contracts.
Needs tests.
12 years ago
Andreas Granig
7a782eb4fb
MT#5255 API: Create roles for resources.
...
Collections and Items have common functions (e.g. hal_from_xxx),
so move them into separate roles.
12 years ago
Andreas Granig
458852f70e
MT#5255 API: use local time for timestamps.
12 years ago
Andreas Granig
02998dd688
MT#3949 API: base-line for system contracts.
12 years ago
Andreas Granig
6bb57f08f2
MT#3997 Finish API skeleton.
...
We should now have working baselines for
- collections (SystemContacts)
- items (SystemContactsItem)
with support for
- collections: OPTIONS, HEAD, GET, POST
- items: OPTIONS, HEAD, GET, PUT, PATCH, DELETE
covered by according tests and with a proper API documentation.
12 years ago
Andreas Granig
f4a9e39a8a
MT#5255 API: move contacts to systemcontacts.
...
Clearly distinguish between systemcontacts (those without reseller) from
customercontacts (those with resellers). Separating them frees us from
having to handle reseller_id magic.
12 years ago
Andreas Granig
beb93987eb
MT#3997 API: move req/res log functions to Role.
12 years ago
Andreas Granig
a135c00190
MT#5255 API: prevent DELETE of used contact
12 years ago
Andreas Granig
a6c3ecb580
MT#5255 API: Implement DELETE for contacts
12 years ago
Andreas Granig
2c51cbd0fb
MT#3997 Fix PUT with reseller_id=null for contact
12 years ago
Andreas Granig
9aa1560619
MT#3997 Dynamically return collections relations.
12 years ago
Andreas Granig
7b8092f702
MT#3997 Get rid of the remaining tt xml responses
12 years ago
Andreas Granig
515990623f
MT#3997 Fix general collection/item handling.
...
Use paging.
Start adding tests for contacts/ collection.
Move more common functions to Role.
Use proper forms for field checking.
12 years ago
Andreas Granig
a4a9f703bd
MT#3997 Remove QueryParameter dependency.
12 years ago
Andreas Granig
fd19cf79c1
MT#3997 Return JSON on precondition failures.
12 years ago
Andreas Granig
0fb58d2668
MT#3997 Use JSON in OPTIONS methods.
12 years ago
Andreas Granig
40ecb1e91d
MT#3997 Distinguish collection and item in URI
...
Use /api/foo/ for collections and /api/foo/{:id} for items to easily
distinguish between them. Also, we want to use query params for limiting
the collections, e.g. /api/foo/?name={:name}&something={:else}, which in
turn returns a filtered collection again. This makes it difficult then to
fetch items via /api/foo/?id={:id}, so use /api/foo/{:id} instead.
Also move rest of common functions into API Role.
12 years ago
Andreas Granig
59e55c243d
MT#3925 Move contracts/ to Role, tighten contacts/
...
Use Role for Contracts controller.
Check reseller_id in Contacts controller for creating contact.
12 years ago
Andreas Granig
9ef4961e97
MT#3925 Migrate more common methods into Role.
12 years ago
Andreas Granig
8683e52cdd
MT#3925 Move POST validation methods into Role.
12 years ago
Andreas Granig
a7ae65ca82
MT#3925 Use forms for validation only; other fixes
...
Don't use JE for data validation, as it adds lots of processing overhead.
Properly use Formhandler for data validation.
Catch DB errors properly.
Write basic auth test.
12 years ago
Andreas Granig
5068bd0f17
MT#3925 Style and reorganize API templates
12 years ago
Lars Dieckow
e5a42d9306
wip
12 years ago