- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Simple API Web Interface for DEMO
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Simple API Web Interface for DEMO
Hi everybody,
I have developed a simple web interface to demo the R80 API utilization, it is a simple web front end to illustrate how throw a web front end it is possible to create rules and objects
The code is free and you can follow this steps to deploy it.
All is using docker and really simple
https://github.com/cadgo/django-chkp
The instructions are in the readme file
If somebody needs a hand to deploy it just let me know.
regards
- Labels:
-
Access Policy
-
General
-
Object Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great effort and nice to see you sharing this. Big thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well done!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for sharing this. Very useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very nice.
Check out SmartConsole Extensions platform to integrate web pages inside SmartConsole
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ron
Thanks for sharing it, I'm going to try it!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Carlos!
I know this post is a few years old, but do you know if it would still work on a fresh installed debian 11.5?
And I will understand if you consider this to be "obsolete" or whatever, only if it should work I would really like to get it working...
I tried to start it, but I got some errors that I don't really understand. Looks like something related to Django, but what do I know.
This is what seems to trigger the error
=> [ 8/12] ADD . /code/ 0.0s
=> [ 9/12] RUN mkdir /code/APIR80/tmp 0.3s
=> ERROR [10/12] RUN python3 manage.py makemigrations
------
> [10/12] RUN python3 manage.py makemigrations:
#0 0.875 Traceback (most recent call last):
#0 0.875 File "/code/manage.py", line 15, in <module>
#0 0.876 execute_from_command_line(sys.argv)
#0 0.876 File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
#0 0.877 utility.execute()
#0 0.877 File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 357, in execute
#0 0.878 django.setup()
#0 0.878 File "/usr/local/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
#0 0.879 apps.populate(settings.INSTALLED_APPS)
#0 0.879 File "/usr/local/lib/python3.11/site-packages/django/apps/registry.py", line 112, in populate
#0 0.879 app_config.import_models()
#0 0.880 File "/usr/local/lib/python3.11/site-packages/django/apps/config.py", line 198, in import_models
#0 0.880 self.models_module = import_module(models_module_name)
#0 0.881 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.889 File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
#0 0.890 return _bootstrap._gcd_import(name[level:], package, level)
#0 0.890 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.890 File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
#0 0.890 File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
#0 0.890 File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
#0 0.890 File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
#0 0.890 File "<frozen importlib._bootstrap_external>", line 940, in exec_module
#0 0.890 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
#0 0.890 File "/usr/local/lib/python3.11/site-packages/django/contrib/auth/models.py", line 94, in <module>
#0 0.890 class Group(models.Model):
#0 0.890 File "/usr/local/lib/python3.11/site-packages/django/db/models/base.py", line 139, in __new__
#0 0.890 new_class.add_to_class(obj_name, obj)
#0 0.890 File "/usr/local/lib/python3.11/site-packages/django/db/models/base.py", line 305, in add_to_class
#0 0.891 value.contribute_to_class(cls, name)
#0 0.891 File "/usr/local/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1583, in contribute_to_class
#0 0.891 self.remote_field.through = create_many_to_many_intermediary_model(self, cls)
#0 0.891 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.891 File "/usr/local/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1051, in create_many_to_many_intermediary_model
#0 0.891 'verbose_name': _('%(from)s-%(to)s relationship') % {'from': from_, 'to': to},
#0 0.891 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 0.892 File "/usr/local/lib/python3.11/site-packages/django/utils/functional.py", line 149, in __mod__
#0 0.892 return str(self) % rhs
#0 0.892 ^^^^^^^^^
#0 0.892 File "/usr/local/lib/python3.11/site-packages/django/utils/functional.py", line 113, in __text_cast
#0 0.892 return func(*self.__args, **self.__kw)
#0 0.892 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.892 File "/usr/local/lib/python3.11/site-packages/django/utils/translation/__init__.py", line 75, in gettext
#0 0.892 return _trans.gettext(message)
#0 0.892 ^^^^^^^^^^^^^^^^^^^^^^^
#0 0.892 File "/usr/local/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 286, in gettext
#0 0.892 _default = _default or translation(settings.LANGUAGE_CODE)
#0 0.893 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.893 File "/usr/local/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 199, in translation
#0 0.893 _translations[language] = DjangoTranslation(language)
#0 0.893 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.893 File "/usr/local/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 90, in __init__
#0 0.893 self._init_translation_catalog()
#0 0.893 File "/usr/local/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 131, in _init_translation_catalog
#0 0.893 translation = self._new_gnu_trans(localedir)
#0 0.893 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.893 File "/usr/local/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 119, in _new_gnu_trans
#0 0.893 return gettext_module.translation(
#0 0.893 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
#0 0.894 TypeError: translation() got an unexpected keyword argument 'codeset'
