Comments (2)
Yes, this would be separate from the base_url, and this extra part
would be appended to the base url defined in the connection settings
I did consider splitting the URL components and the GET parameters, but I think having it like this makes it slightly more flexible. For lists, you could use a reduce items expression with a "join" https://commcare-hq.readthedocs.io/ucr.html#reduce-items-expression
You could technically use a reduce for the full custom part of the URL, but I think using a template is potentially a better UX.
from commcare-hq.
Seems reasonable. Would this be separate from a base URL? Ie, you'd see two fields to be concatenated together:
base_url: https://example.com/api/v3.1
configurable_portion: "/{case_id}?param1="{param_1}"
That seems desirable so we have better assurances about what servers our system is submitting to (so we don't become a DDOS intermediary, for example).
Did you consider splitting out URL components and GET parameters? The rules around them are a little different - we may need to escape characters, for example. And would this support list types? Like if a project needs to encode ?patient_type=pediatric&patient_type=oncology
or something. I don't think we could reasonably support all ways servers choose to encode their data without providing a scripting language, so it's certainly fine to draw the line somewhere.
from commcare-hq.
Related Issues (20)
- [CEP] Case Users HOT 4
- [CEP] runtime configurable settings HOT 4
- [CEP] "Single-use" data links HOT 11
- API Endpoints - Add Lookup Table to App Structure API
- [CEP] Cache formplayer's validate_form's result on HQ to improve App Preview Refreshes HOT 5
- [CEP] Table partitioning for remote API logs HOT 1
- [CEP] Allow filtering by privileges on Exchange HOT 4
- [CEP] Allow deprecating unused case properties HOT 1
- [CEP] Generic HQ auditing model HOT 8
- [CEP] expanded parent xpath filtering for case search HOT 1
- [CEP] The use of type hints HOT 33
- [CEP] CommCare Query Language for Case Search HOT 12
- [CEP] date_add function for case search HOT 9
- [CEP] Case Search Query support for creating calendar based dates HOT 4
- [CEP] System Forms Metadata Standardization HOT 6
- HELPME: Refactor problematic methods
- [CEP] Supporting domains without privilege while GAing feature-flags to paid privileges HOT 26
- [CEP] Do not preindex_everything on every deploy HOT 7
- Error building commcarehq_incl to run HQ in Docker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commcare-hq.