shirokovnv / phx_json_rpc Goto Github PK
View Code? Open in Web Editor NEWSimple JSON RPC server written in elixir.
License: MIT License
Simple JSON RPC server written in elixir.
License: MIT License
Please, provide a small example of how it can be used + a screenshot of the end request / response.
In case it is only used for tests it should be moved to tests/
.
If it is there for some other reason, we should specify its purpose in the docs.
If it is true, than it is better to move it to test/priv/static/
Right now only one Elixir / OTP combination is tested.
The best practice is to use matrixes. Like this: https://github.com/wemake-services/ecto_autoslug_field/blob/master/.github/workflows/test.yml#L18-L21
How do I get session in rpc calls?
It is way easier for GitHub users to see what is released and what is not released yet.
Example: https://github.com/wemake-services/recase/releases
Hello.
I'm trying to make some basic auth validation for methods and their parameters, and i can't find a way to add additional information to request.
This is because DefaultPipeline in Router takes metadata from LocalRouter, and not from controller.
This is code from example:
def rpc(conn, request) do
response = Router.handle(request)
render(conn, "response.json", response)
end
But if I have multiple clients and they only need to perform actions on their own entities, I can't validate their request according to their access level.
I suggest adding a connection as the second parameter, or just a map to forward the necessary tokens.
I think it is safe to include older versions as well.
At least two of them.
Link: https://github.com/shirokovnv/phx_json_rpc/blob/master/mix.exs#L36
Refs #2
Which Phoenix versions are supported?
Neither docs nor CI specify that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.