easy_swagger_ui 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +76 -0
- data/Rakefile +18 -0
- data/app/assets/config/easy_swagger_ui_manifest.js +5 -0
- data/app/assets/fonts/easy_swagger_ui/DroidSans-Bold.ttf +0 -0
- data/app/assets/fonts/easy_swagger_ui/DroidSans.ttf +0 -0
- data/app/assets/images/easy_swagger_ui/collapse.gif +0 -0
- data/app/assets/images/easy_swagger_ui/expand.gif +0 -0
- data/app/assets/images/easy_swagger_ui/explorer_icons.png +0 -0
- data/app/assets/images/easy_swagger_ui/favicon-16x16.png +0 -0
- data/app/assets/images/easy_swagger_ui/favicon-32x32.png +0 -0
- data/app/assets/images/easy_swagger_ui/logo_small.png +0 -0
- data/app/assets/images/easy_swagger_ui/pet_store_api.png +0 -0
- data/app/assets/images/easy_swagger_ui/throbber.gif +0 -0
- data/app/assets/images/easy_swagger_ui/wordnik_api.png +0 -0
- data/app/assets/javascripts/easy_swagger_ui/application.js +14 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/ca.js +53 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/el.js +56 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/en.js +56 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/es.js +53 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/fr.js +54 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/geo.js +56 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/it.js +52 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/ja.js +56 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/ko-kr.js +53 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/pl.js +53 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/pt.js +53 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/ru.js +56 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/tr.js +53 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/translator.js +39 -0
- data/app/assets/javascripts/easy_swagger_ui/lang/zh-cn.js +56 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/backbone-min.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/handlebars-4.0.5.js +3 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/highlight.9.1.0.pack.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/highlight.9.1.0.pack_extended.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/jquery-1.8.0.min.js +3 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/jquery.ba-bbq.min.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/jquery.slideto.min.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/jquery.wiggle.min.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/js-yaml.min.js +2 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/jsoneditor.min.js +5 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/lodash.min.js +2 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/marked.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/object-assign-pollyfill.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/lib/swagger-oauth.js +1 -0
- data/app/assets/javascripts/easy_swagger_ui/swagger-ui.js +25344 -0
- data/app/assets/stylesheets/easy_swagger_ui/application.css +5 -0
- data/app/assets/stylesheets/easy_swagger_ui/lib/print.css.erb +1377 -0
- data/app/assets/stylesheets/easy_swagger_ui/lib/reset.css +125 -0
- data/app/assets/stylesheets/easy_swagger_ui/lib/screen.css.erb +1504 -0
- data/app/assets/stylesheets/easy_swagger_ui/lib/style.css +248 -0
- data/app/assets/stylesheets/easy_swagger_ui/lib/typography.css.erb +14 -0
- data/app/assets/stylesheets/easy_swagger_ui/print.css +4 -0
- data/app/controllers/easy_swagger_ui/application_controller.rb +6 -0
- data/app/controllers/easy_swagger_ui/swagger_controller.rb +62 -0
- data/app/helpers/easy_swagger_ui/application_helper.rb +7 -0
- data/app/views/easy_swagger_ui/swagger/oauth2.html.erb +20 -0
- data/app/views/easy_swagger_ui/swagger/view.html.erb +99 -0
- data/config/initializers/assets.rb +7 -0
- data/config/initializers/easy_swagger_ui.rb +7 -0
- data/config/routes.rb +8 -0
- data/lib/easy_swagger_ui.rb +19 -0
- data/lib/easy_swagger_ui/configuration.rb +34 -0
- data/lib/easy_swagger_ui/engine.rb +5 -0
- data/lib/easy_swagger_ui/route_matcher.rb +13 -0
- data/lib/easy_swagger_ui/version.rb +4 -0
- metadata +184 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a95115097dea55839e2874050608eb041a1614d
|
4
|
+
data.tar.gz: 683b55ee718a44a7e735ac5751bfdd64f79afb1e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cdb7ba624c0668ab37be9f1d76e819f6199aa95b5c08348a3b6b9f1f9a9aebe5ea771a90aac02cd529e38ff911a0e2647394454a49a3b780f16fc65088c67803
|
7
|
+
data.tar.gz: 6e520a375288ee74242364d0b6b283e524c2a981b9a9c70217c6223158b570c098a398cbc74182488a607d2f509c8cf76cb71e2822e5f16a16be9458147d4754
|
data/CHANGELOG.md
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2017 Bian Jiaping
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# EasySwaggerUi
|
2
|
+
|
3
|
+
Mountable Rails plugin that serve your API documentation written in YAML files via Swagger UI.
|
4
|
+
|
5
|
+
Test against Rails 5.x. Should also work with Rails 4.2.x.
|
6
|
+
|
7
|
+
Swagger UI version: 2.2.10. Accessible by in `EasySwaggerUi::SWAGGER_UI_VERSION`.
|
8
|
+
|
9
|
+
## Features
|
10
|
+
|
11
|
+
* Parse API documentation in YAML files and serve as JSON to be consumed by Swagger UI
|
12
|
+
* separate your documentation into multiple YAML files for ease of management
|
13
|
+
* Support using ERB in YAML files
|
14
|
+
* Serve Swagger UI
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your application's Gemfile:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem 'easy_swagger_ui', '~> 0.1'
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
```bash
|
26
|
+
$ bundle
|
27
|
+
```
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
### Mount
|
32
|
+
|
33
|
+
Mount it in `config/routes.rb`:
|
34
|
+
|
35
|
+
```
|
36
|
+
# Change the mount point as you like
|
37
|
+
mount EasySwaggerUi::Engine => '/docs'
|
38
|
+
```
|
39
|
+
|
40
|
+
### Write your API documentation
|
41
|
+
|
42
|
+
Your documentation should match the requirement of [Swagger Specification](http://swagger.io/specification/). See examples at [Swagger Online Editor](http://editor.swagger.io/).
|
43
|
+
|
44
|
+
Place them under `EasySwaggerUi.base_path` (default to `<Rails.root>/doc`).
|
45
|
+
|
46
|
+
1. You should have a `swagger.yml` file in your documentation path.
|
47
|
+
2. You can extract something from `swagger.yml` into separate YAML file or into sub directories. See example in [test/dummy/doc](./test/dummy/doc).
|
48
|
+
3. If you have multiple versions of documentation, you can place each version in a sub directory under `EasySwaggerUi.base_path`. Just make sure each version has a `swagger.yml` file.
|
49
|
+
|
50
|
+
### Visit Swagger UI
|
51
|
+
|
52
|
+
You can visit Swagger UI at http://localhost:3000/docs.
|
53
|
+
|
54
|
+
If you place documentation in sub directories, append the name of sub directory into the URL.
|
55
|
+
|
56
|
+
## Configuration
|
57
|
+
|
58
|
+
Create an initializer, such as `config/initializers/easy_swagger_ui.rb`:
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
EasySwaggerUi.configure do |config|
|
62
|
+
config.base_path = Rails.root.join('doc', 'api')
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
Supported configuration options:
|
67
|
+
|
68
|
+
* `base_path`: `String` or `Pathname`. Base path of your documentation. Absolute path or relative path relative to `Rails.root`. Default to `Rails.root.join('doc')`.
|
69
|
+
* `cache_enabled`: Boolean. Whether or not to cache parsing result of YAML files. Default to `!Rails.env.development?`
|
70
|
+
* `cache_timeout`: `ActiveSupport::Duration`. How long should cache be valid. Default to `30.minutes`
|
71
|
+
* `cache_store`: `ActiveSupport::Cache::Store`. What cache store to use. Default to `ActiveSupport::Cache::MemoryStore.new`
|
72
|
+
* `validator_enabled`: Boolean. Whether or not validate swagger specification. Default to `false`.
|
73
|
+
|
74
|
+
## License
|
75
|
+
|
76
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
load 'rails/tasks/statistics.rake'
|
8
|
+
require 'bundler/gem_tasks'
|
9
|
+
require 'rake/testtask'
|
10
|
+
|
11
|
+
Rake::TestTask.new(:test) do |t|
|
12
|
+
t.libs << 'lib'
|
13
|
+
t.libs << 'test'
|
14
|
+
t.pattern = 'test/**/*_test.rb'
|
15
|
+
t.verbose = false
|
16
|
+
end
|
17
|
+
|
18
|
+
task default: :test
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
//= require ./lib/object-assign-pollyfill.js
|
2
|
+
//= require ./lib/jquery-1.8.0.min.js
|
3
|
+
//= require ./lib/jquery.slideto.min.js
|
4
|
+
//= require ./lib/jquery.wiggle.min.js
|
5
|
+
//= require ./lib/jquery.ba-bbq.min.js
|
6
|
+
//= require ./lib/handlebars-4.0.5.js
|
7
|
+
//= require ./lib/lodash.min.js
|
8
|
+
//= require ./lib/backbone-min.js
|
9
|
+
//= require ./swagger-ui.js
|
10
|
+
//= require ./lib/highlight.9.1.0.pack.js
|
11
|
+
//= require ./lib/highlight.9.1.0.pack_extended.js
|
12
|
+
//= require ./lib/jsoneditor.min.js
|
13
|
+
//= require ./lib/marked.js
|
14
|
+
//= require ./lib/swagger-oauth.js
|
@@ -0,0 +1,53 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
/* jshint quotmark: double */
|
4
|
+
window.SwaggerTranslator.learn({
|
5
|
+
"Warning: Deprecated":"Advertència: Obsolet",
|
6
|
+
"Implementation Notes":"Notes d'implementació",
|
7
|
+
"Response Class":"Classe de la Resposta",
|
8
|
+
"Status":"Estatus",
|
9
|
+
"Parameters":"Paràmetres",
|
10
|
+
"Parameter":"Paràmetre",
|
11
|
+
"Value":"Valor",
|
12
|
+
"Description":"Descripció",
|
13
|
+
"Parameter Type":"Tipus del Paràmetre",
|
14
|
+
"Data Type":"Tipus de la Dada",
|
15
|
+
"Response Messages":"Missatges de la Resposta",
|
16
|
+
"HTTP Status Code":"Codi d'Estatus HTTP",
|
17
|
+
"Reason":"Raó",
|
18
|
+
"Response Model":"Model de la Resposta",
|
19
|
+
"Request URL":"URL de la Sol·licitud",
|
20
|
+
"Response Body":"Cos de la Resposta",
|
21
|
+
"Response Code":"Codi de la Resposta",
|
22
|
+
"Response Headers":"Capçaleres de la Resposta",
|
23
|
+
"Hide Response":"Amagar Resposta",
|
24
|
+
"Try it out!":"Prova-ho!",
|
25
|
+
"Show/Hide":"Mostrar/Amagar",
|
26
|
+
"List Operations":"Llista Operacions",
|
27
|
+
"Expand Operations":"Expandir Operacions",
|
28
|
+
"Raw":"Cru",
|
29
|
+
"can't parse JSON. Raw result":"no puc analitzar el JSON. Resultat cru",
|
30
|
+
"Example Value":"Valor d'Exemple",
|
31
|
+
"Model Schema":"Esquema del Model",
|
32
|
+
"Model":"Model",
|
33
|
+
"apply":"aplicar",
|
34
|
+
"Username":"Nom d'usuari",
|
35
|
+
"Password":"Contrasenya",
|
36
|
+
"Terms of service":"Termes del servei",
|
37
|
+
"Created by":"Creat per",
|
38
|
+
"See more at":"Veure més en",
|
39
|
+
"Contact the developer":"Contactar amb el desenvolupador",
|
40
|
+
"api version":"versió de la api",
|
41
|
+
"Response Content Type":"Tipus de Contingut de la Resposta",
|
42
|
+
"fetching resource":"recollint recurs",
|
43
|
+
"fetching resource list":"recollins llista de recursos",
|
44
|
+
"Explore":"Explorant",
|
45
|
+
"Show Swagger Petstore Example Apis":"Mostrar API d'Exemple Swagger Petstore",
|
46
|
+
"Can't read from server. It may not have the appropriate access-control-origin settings.":"No es pot llegir del servidor. Potser no teniu la configuració de control d'accés apropiada.",
|
47
|
+
"Please specify the protocol for":"Si us plau, especifiqueu el protocol per a",
|
48
|
+
"Can't read swagger JSON from":"No es pot llegir el JSON de swagger des de",
|
49
|
+
"Finished Loading Resource Information. Rendering Swagger UI":"Finalitzada la càrrega del recurs informatiu. Renderitzant Swagger UI",
|
50
|
+
"Unable to read api":"No es pot llegir l'api",
|
51
|
+
"from path":"des de la ruta",
|
52
|
+
"server returned":"el servidor ha retornat"
|
53
|
+
});
|
@@ -0,0 +1,56 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
/* jshint quotmark: double */
|
4
|
+
window.SwaggerTranslator.learn({
|
5
|
+
"Warning: Deprecated":"Προειδοποίηση: Έχει αποσυρθεί",
|
6
|
+
"Implementation Notes":"Σημειώσεις Υλοποίησης",
|
7
|
+
"Response Class":"Απόκριση",
|
8
|
+
"Status":"Κατάσταση",
|
9
|
+
"Parameters":"Παράμετροι",
|
10
|
+
"Parameter":"Παράμετρος",
|
11
|
+
"Value":"Τιμή",
|
12
|
+
"Description":"Περιγραφή",
|
13
|
+
"Parameter Type":"Τύπος Παραμέτρου",
|
14
|
+
"Data Type":"Τύπος Δεδομένων",
|
15
|
+
"Response Messages":"Μηνύματα Απόκρισης",
|
16
|
+
"HTTP Status Code":"Κωδικός Κατάστασης HTTP",
|
17
|
+
"Reason":"Αιτιολογία",
|
18
|
+
"Response Model":"Μοντέλο Απόκρισης",
|
19
|
+
"Request URL":"URL Αιτήματος",
|
20
|
+
"Response Body":"Σώμα Απόκρισης",
|
21
|
+
"Response Code":"Κωδικός Απόκρισης",
|
22
|
+
"Response Headers":"Επικεφαλίδες Απόκρισης",
|
23
|
+
"Hide Response":"Απόκρυψη Απόκρισης",
|
24
|
+
"Headers":"Επικεφαλίδες",
|
25
|
+
"Try it out!":"Δοκιμάστε το!",
|
26
|
+
"Show/Hide":"Εμφάνιση/Απόκρυψη",
|
27
|
+
"List Operations":"Λίστα Λειτουργιών",
|
28
|
+
"Expand Operations":"Ανάπτυξη Λειτουργιών",
|
29
|
+
"Raw":"Ακατέργαστο",
|
30
|
+
"can't parse JSON. Raw result":"αδυναμία ανάλυσης JSON. Ακατέργαστο αποτέλεσμα",
|
31
|
+
"Example Value":"Παράδειγμα Τιμής",
|
32
|
+
"Model Schema":"Σχήμα Μοντέλου",
|
33
|
+
"Model":"Μοντέλο",
|
34
|
+
"Click to set as parameter value":"Πατήστε για να θέσετε τιμή παραμέτρου",
|
35
|
+
"apply":"εφαρμογή",
|
36
|
+
"Username":"Όνομα χρήση",
|
37
|
+
"Password":"Κωδικός πρόσβασης",
|
38
|
+
"Terms of service":"Όροι χρήσης",
|
39
|
+
"Created by":"Δημιουργήθηκε από",
|
40
|
+
"See more at":"Δείτε περισσότερα στο",
|
41
|
+
"Contact the developer":"Επικοινωνήστε με τον προγραμματιστή",
|
42
|
+
"api version":"έκδοση api",
|
43
|
+
"Response Content Type":"Τύπος Περιεχομένου Απόκρισης",
|
44
|
+
"Parameter content type:":"Τύπος περιεχομένου παραμέτρου:",
|
45
|
+
"fetching resource":"παραλαβή πόρου",
|
46
|
+
"fetching resource list":"παραλαβή λίστας πόρων",
|
47
|
+
"Explore":"Εξερεύνηση",
|
48
|
+
"Show Swagger Petstore Example Apis":"Εμφάνιση Api Δειγμάτων Petstore του Swagger",
|
49
|
+
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Αδυναμία ανάγνωσης από τον εξυπηρετητή. Μπορεί να μην έχει κατάλληλες ρυθμίσεις για access-control-origin.",
|
50
|
+
"Please specify the protocol for":"Παρακαλώ προσδιορίστε το πρωτόκολλο για",
|
51
|
+
"Can't read swagger JSON from":"Αδυναμία ανάγνωσης swagger JSON από",
|
52
|
+
"Finished Loading Resource Information. Rendering Swagger UI":"Ολοκλήρωση Φόρτωσης Πληροφορικών Πόρου. Παρουσίαση Swagger UI",
|
53
|
+
"Unable to read api":"Αδυναμία ανάγνωσης api",
|
54
|
+
"from path":"από το μονοπάτι",
|
55
|
+
"server returned":"ο εξυπηρετηρής επέστρεψε"
|
56
|
+
});
|
@@ -0,0 +1,56 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
/* jshint quotmark: double */
|
4
|
+
window.SwaggerTranslator.learn({
|
5
|
+
"Warning: Deprecated":"Warning: Deprecated",
|
6
|
+
"Implementation Notes":"Implementation Notes",
|
7
|
+
"Response Class":"Response Class",
|
8
|
+
"Status":"Status",
|
9
|
+
"Parameters":"Parameters",
|
10
|
+
"Parameter":"Parameter",
|
11
|
+
"Value":"Value",
|
12
|
+
"Description":"Description",
|
13
|
+
"Parameter Type":"Parameter Type",
|
14
|
+
"Data Type":"Data Type",
|
15
|
+
"Response Messages":"Response Messages",
|
16
|
+
"HTTP Status Code":"HTTP Status Code",
|
17
|
+
"Reason":"Reason",
|
18
|
+
"Response Model":"Response Model",
|
19
|
+
"Request URL":"Request URL",
|
20
|
+
"Response Body":"Response Body",
|
21
|
+
"Response Code":"Response Code",
|
22
|
+
"Response Headers":"Response Headers",
|
23
|
+
"Hide Response":"Hide Response",
|
24
|
+
"Headers":"Headers",
|
25
|
+
"Try it out!":"Try it out!",
|
26
|
+
"Show/Hide":"Show/Hide",
|
27
|
+
"List Operations":"List Operations",
|
28
|
+
"Expand Operations":"Expand Operations",
|
29
|
+
"Raw":"Raw",
|
30
|
+
"can't parse JSON. Raw result":"can't parse JSON. Raw result",
|
31
|
+
"Example Value":"Example Value",
|
32
|
+
"Model Schema":"Model Schema",
|
33
|
+
"Model":"Model",
|
34
|
+
"Click to set as parameter value":"Click to set as parameter value",
|
35
|
+
"apply":"apply",
|
36
|
+
"Username":"Username",
|
37
|
+
"Password":"Password",
|
38
|
+
"Terms of service":"Terms of service",
|
39
|
+
"Created by":"Created by",
|
40
|
+
"See more at":"See more at",
|
41
|
+
"Contact the developer":"Contact the developer",
|
42
|
+
"api version":"api version",
|
43
|
+
"Response Content Type":"Response Content Type",
|
44
|
+
"Parameter content type:":"Parameter content type:",
|
45
|
+
"fetching resource":"fetching resource",
|
46
|
+
"fetching resource list":"fetching resource list",
|
47
|
+
"Explore":"Explore",
|
48
|
+
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
|
49
|
+
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.",
|
50
|
+
"Please specify the protocol for":"Please specify the protocol for",
|
51
|
+
"Can't read swagger JSON from":"Can't read swagger JSON from",
|
52
|
+
"Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
|
53
|
+
"Unable to read api":"Unable to read api",
|
54
|
+
"from path":"from path",
|
55
|
+
"server returned":"server returned"
|
56
|
+
});
|
@@ -0,0 +1,53 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
/* jshint quotmark: double */
|
4
|
+
window.SwaggerTranslator.learn({
|
5
|
+
"Warning: Deprecated":"Advertencia: Obsoleto",
|
6
|
+
"Implementation Notes":"Notas de implementación",
|
7
|
+
"Response Class":"Clase de la Respuesta",
|
8
|
+
"Status":"Status",
|
9
|
+
"Parameters":"Parámetros",
|
10
|
+
"Parameter":"Parámetro",
|
11
|
+
"Value":"Valor",
|
12
|
+
"Description":"Descripción",
|
13
|
+
"Parameter Type":"Tipo del Parámetro",
|
14
|
+
"Data Type":"Tipo del Dato",
|
15
|
+
"Response Messages":"Mensajes de la Respuesta",
|
16
|
+
"HTTP Status Code":"Código de Status HTTP",
|
17
|
+
"Reason":"Razón",
|
18
|
+
"Response Model":"Modelo de la Respuesta",
|
19
|
+
"Request URL":"URL de la Solicitud",
|
20
|
+
"Response Body":"Cuerpo de la Respuesta",
|
21
|
+
"Response Code":"Código de la Respuesta",
|
22
|
+
"Response Headers":"Encabezados de la Respuesta",
|
23
|
+
"Hide Response":"Ocultar Respuesta",
|
24
|
+
"Try it out!":"Pruébalo!",
|
25
|
+
"Show/Hide":"Mostrar/Ocultar",
|
26
|
+
"List Operations":"Listar Operaciones",
|
27
|
+
"Expand Operations":"Expandir Operaciones",
|
28
|
+
"Raw":"Crudo",
|
29
|
+
"can't parse JSON. Raw result":"no puede parsear el JSON. Resultado crudo",
|
30
|
+
"Example Value":"Valor de Ejemplo",
|
31
|
+
"Model Schema":"Esquema del Modelo",
|
32
|
+
"Model":"Modelo",
|
33
|
+
"apply":"aplicar",
|
34
|
+
"Username":"Nombre de usuario",
|
35
|
+
"Password":"Contraseña",
|
36
|
+
"Terms of service":"Términos de Servicio",
|
37
|
+
"Created by":"Creado por",
|
38
|
+
"See more at":"Ver más en",
|
39
|
+
"Contact the developer":"Contactar al desarrollador",
|
40
|
+
"api version":"versión de la api",
|
41
|
+
"Response Content Type":"Tipo de Contenido (Content Type) de la Respuesta",
|
42
|
+
"fetching resource":"buscando recurso",
|
43
|
+
"fetching resource list":"buscando lista del recurso",
|
44
|
+
"Explore":"Explorar",
|
45
|
+
"Show Swagger Petstore Example Apis":"Mostrar Api Ejemplo de Swagger Petstore",
|
46
|
+
"Can't read from server. It may not have the appropriate access-control-origin settings.":"No se puede leer del servidor. Tal vez no tiene la configuración de control de acceso de origen (access-control-origin) apropiado.",
|
47
|
+
"Please specify the protocol for":"Por favor, especificar el protocola para",
|
48
|
+
"Can't read swagger JSON from":"No se puede leer el JSON de swagger desde",
|
49
|
+
"Finished Loading Resource Information. Rendering Swagger UI":"Finalizada la carga del recurso de Información. Mostrando Swagger UI",
|
50
|
+
"Unable to read api":"No se puede leer la api",
|
51
|
+
"from path":"desde ruta",
|
52
|
+
"server returned":"el servidor retornó"
|
53
|
+
});
|
@@ -0,0 +1,54 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
/* jshint quotmark: double */
|
4
|
+
window.SwaggerTranslator.learn({
|
5
|
+
"Warning: Deprecated":"Avertissement : Obsolète",
|
6
|
+
"Implementation Notes":"Notes d'implémentation",
|
7
|
+
"Response Class":"Classe de la réponse",
|
8
|
+
"Status":"Statut",
|
9
|
+
"Parameters":"Paramètres",
|
10
|
+
"Parameter":"Paramètre",
|
11
|
+
"Value":"Valeur",
|
12
|
+
"Description":"Description",
|
13
|
+
"Parameter Type":"Type du paramètre",
|
14
|
+
"Data Type":"Type de données",
|
15
|
+
"Response Messages":"Messages de la réponse",
|
16
|
+
"HTTP Status Code":"Code de statut HTTP",
|
17
|
+
"Reason":"Raison",
|
18
|
+
"Response Model":"Modèle de réponse",
|
19
|
+
"Request URL":"URL appelée",
|
20
|
+
"Response Body":"Corps de la réponse",
|
21
|
+
"Response Code":"Code de la réponse",
|
22
|
+
"Response Headers":"En-têtes de la réponse",
|
23
|
+
"Hide Response":"Cacher la réponse",
|
24
|
+
"Headers":"En-têtes",
|
25
|
+
"Try it out!":"Testez !",
|
26
|
+
"Show/Hide":"Afficher/Masquer",
|
27
|
+
"List Operations":"Liste des opérations",
|
28
|
+
"Expand Operations":"Développer les opérations",
|
29
|
+
"Raw":"Brut",
|
30
|
+
"can't parse JSON. Raw result":"impossible de décoder le JSON. Résultat brut",
|
31
|
+
"Example Value":"Exemple la valeur",
|
32
|
+
"Model Schema":"Définition du modèle",
|
33
|
+
"Model":"Modèle",
|
34
|
+
"apply":"appliquer",
|
35
|
+
"Username":"Nom d'utilisateur",
|
36
|
+
"Password":"Mot de passe",
|
37
|
+
"Terms of service":"Conditions de service",
|
38
|
+
"Created by":"Créé par",
|
39
|
+
"See more at":"Voir plus sur",
|
40
|
+
"Contact the developer":"Contacter le développeur",
|
41
|
+
"api version":"version de l'api",
|
42
|
+
"Response Content Type":"Content Type de la réponse",
|
43
|
+
"fetching resource":"récupération de la ressource",
|
44
|
+
"fetching resource list":"récupération de la liste de ressources",
|
45
|
+
"Explore":"Explorer",
|
46
|
+
"Show Swagger Petstore Example Apis":"Montrer les Apis de l'exemple Petstore de Swagger",
|
47
|
+
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Impossible de lire à partir du serveur. Il se peut que les réglages access-control-origin ne soient pas appropriés.",
|
48
|
+
"Please specify the protocol for":"Veuillez spécifier un protocole pour",
|
49
|
+
"Can't read swagger JSON from":"Impossible de lire le JSON swagger à partir de",
|
50
|
+
"Finished Loading Resource Information. Rendering Swagger UI":"Chargement des informations terminé. Affichage de Swagger UI",
|
51
|
+
"Unable to read api":"Impossible de lire l'api",
|
52
|
+
"from path":"à partir du chemin",
|
53
|
+
"server returned":"réponse du serveur"
|
54
|
+
});
|