Comments (3)
How do you think the client library should behave in this?
You can send headers when making an API call using the client. Wouldn't that solve this issue?
from alpaca.
@marfarma Could you describe this case more? Do you want the api clients to have some default headers?
from alpaca.
Yes, exactly that. In my case the API is to a service that implements a facade against another API. Attributes required to connect to that API must exist in each request against mine. Rather than pollute every request payload, I expect a header with those values.
My thoughts were that I should be able to define required connection constants, and associated header formatting, encoding, etc. The values would be assigned once per connection instance of the client library. The library then builds the required headers and inserts them on each request.
from alpaca.
Related Issues (20)
- Example values when NULL gives errors in documentation
- Output to a different directory
- Format: RESTful API Modeling Language (RAML)
- Format: API Blueprint
- Print optional params in the documentation
- Re-evaluate headers in documentation
- Avoid documentation about `raw` request_type
- Validate alpaca.json before using it HOT 1
- Format: Swagger
- Client Generation: Rust
- Format: YAML HOT 1
- Client Generation: Swift
- Allow only single response type
- Allow option to forbid client options
- Forbid change when there is one request format
- Run-time error when running Alpaca on files HOT 2
- Unable to parse JSON error HOT 1
- Change password & username defaults in docs HOT 1
- Error on generate api HOT 3
- invalid character 'Â' looking for beginning of object key string
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 alpaca.