Comments (5)
I just submitted a pull request for this: #24
from rest-easy.
Since the pull request of @mikegioia is outdated, i've tryed to implenet the json preview.
Everything looks fine but i have a hard time using the localization strings.
Here is everything i have made for now:
https://github.com/set-killer/REST-Easy/commit/ca3e2f7ed6aa99d4d1a59e9bc57a4913693b7d67
@nathan-osman could you please give me support on this localization strings?
They are just 2 strings that can't call inside resteasy.html and application.js
response.jsonn.title
response.jsonn.error
If you have any other remarks on the code, please tell me to fix them. Then i can make pull request.
from rest-easy.
To answer your first question, you can access localized strings using:
tr(string_name)
For example:
var username = tr('request.auth.username');
However, I'm not sure that adding a new tab is the best way to present the prettified JSON. The Raw tab is supposed to display the content exactly the way it was received over-the-wire. The Preview tab would probably be a more appropriate place to display the prettified JSON.
from rest-easy.
Thank you for the comment. That way it was much easier to implement. I've tryed to keep the code consistent.
The pull request is here:
https://github.com/nathan-osman/REST-Easy/pull/33/files
If there are is anything that i have to change on the code, please tell me to fix it.
from rest-easy.
Looks good, thanks!
from rest-easy.
Related Issues (20)
- Unable to see in menu HOT 3
- Still Unable to see in menu ? HOT 13
- Double-click to edit value & name HOT 1
- Make compatible with GitHub Extension Installer HOT 2
- Saving requests HOT 1
- differentiate headers and parameters tabs HOT 2
- JSON Response Formatter [enhancement] HOT 5
- Can't handle the 204 status code [bug] HOT 2
- Cancel current request HOT 3
- https calls don't work HOT 2
- Long header value
- Add support for file upload HOT 1
- When sending a POST request which includes a JSON, the ribbon is stuck
- Add support for raw POST like curl's --data option HOT 7
- Ability to save a request HOT 2
- Editing headers
- Can REST-Easy use SSL authentication? HOT 1
- Custom content type not respected when POSTing HOT 12
- Can't extract binary data after post
- FF 57 support HOT 3
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 rest-easy.