Gerhard Jungwirth
b343f16e5e
MT#6497 API: edit callforwards
...
we use the billing.voip_subscribers id now (as everywhere else)
12 years ago
Gerhard Jungwirth
fc1c89a7c1
MT#6497 API: get callforwards (simple)
12 years ago
Gerhard Jungwirth
3bdc7c74b9
MT#6703 fix merge conflict
...
and remove one more class dependency (see MT#6559)
12 years ago
Irina Peshinskaya
0c5c6ff0f8
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
266d2eb48d
MT#6663 Make API more robust when contract has no billing_profile
...
This should at least not fail with 500
12 years ago
Irina Peshinskaya
dcccfa9232
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
6d17b70ab0
MT#6295 API: fix failing customers and contracts requests
...
validate max_subscribers (like in earlier versions) but don't
require product to be set
and typo
12 years ago
Irina Peshinskaya
021b0af430
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
21a5d7ee37
MT#6195 API rwr: Give proper reseller access
...
see also MT#6479
12 years ago
Andreas Granig
861e38b649
MT#6283 Add more query params to existing colls
12 years ago
Irina Peshinskaya
bd7d18c49b
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
31e6c5fa71
MT#6195 API: ability to handle rules directly in rewriteruleset
12 years ago
Gerhard Jungwirth
edd904ce45
MT#6295 API: fix tests Prefer header no longer required
12 years ago
Gerhard Jungwirth
11e421dc08
MT#6195 API: rename rewrite -> rewriterulesets
12 years ago
Irina Peshinskaya
34f77792c9
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
...
Conflicts:
lib/NGCP/Panel/Role/API/Customers.pm
12 years ago
Andreas Granig
7d76b46b10
MT#6283 Fix search framework to work on debian
...
- overriding item_rs doesn't work with that particular catalyst
version, use work-around.
12 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
12 years ago
Irina Peshinskaya
f0263620e4
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
10b7ed52c4
MT#5599 fix role check
12 years ago
Gerhard Jungwirth
36f2be7689
MT#6195 API: rewrite: GET, PUT and PATCH implemented
12 years ago
Irina Peshinskaya
f5b02e48f0
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Irka
fb891ee0ed
Save state with incorrect, but fast svg template apply
12 years ago
Andreas Granig
74aeb7938d
MT#5929 Fix lock, ext_xxx_id and dbalias handling.
...
- ext_subscriber_id and ext_contract_id preferences weren't populated correctly.
- subscriber lock preference wasn't populated correctly
- old dbalias entries weren't cleared correctly for API calls
12 years ago
Andreas Granig
d445274d1d
MT#5967 API: validate allowed ip entries.
12 years ago
Andreas Granig
c61b9eec5d
MT#3933 API: Handle subscriber lock/termination
12 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.
12 years ago
Andreas Granig
2f749a341a
MT#3933 API: add subscriber editing via PUT/PATCH
12 years ago
Andreas Granig
0218de9cc0
MT#5833 Update italian translation.
12 years ago
Andreas Granig
2c49abb49e
MT#3925 Add more field descriptions to forms.
12 years ago
Andreas Granig
c799df3ebd
MT#3925 API: dynamically render API documentation.
12 years ago
Andreas Granig
d508a519c8
MT#3933 API: tighten subscriber creation.
12 years ago
Andreas Granig
cd155992ca
MT#5661 API: fix prepaid flag changes.
12 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
9651c81852
MT#3933 API: fetch and create subscriber. WIP.
...
Doesn't handle PBX stuff yet, only basic subscriber stuff.
12 years ago
Andreas Granig
ce93199ff8
MT#5349 API: return reseller_id for domain.
12 years ago
Andreas Granig
1359aa556b
MT#5349 API: Implement special dompref removal.
12 years ago
Andreas Granig
ee9d4fab2f
MT#5349 API: Implement PUT/PATCH on special dprefs
...
For sound sets, allowed ips etc the update needs special treatment.
12 years ago
Andreas Granig
8cdf9c7880
MT#5349 API: Implement GET for special domprefs
...
sound sets, rewrite rules, ncos and allowed ip groups require special
treatment when being fetched.
12 years ago
Andreas Granig
de6ac98ec9
MT#5349 API: Implement validation for dom prefs.
12 years ago
Andreas Granig
a737e3f05e
MT#5349 API: skip updating prefs with null value
12 years ago
Andreas Granig
efafd55c87
MT#3931 API: Use TryCatch instead of Try::Tiny
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
d12520982f
MT#5299 API: more billing tests and bug fixes.
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
5ba6edcadc
MT#5299 API: add first tests for billing profiles.
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
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
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
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
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
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