How does Oracle APEX generate Swagger doc - oracle

I was working on Some API documentation, we have an option to Generate "swagger doc" on module itself.
The question I wanted to ask was how does Oracle generate it?
Is there a table in ORACLE DB we can see the same JSON data?

Related

How can I create a NestJS graphql server with dynamic schema with respect to user?

I am using Nest JS for server and new to Graphql, I want to create a graphql server but schema defines in Graphql module in app.module. I am using schema first appraoch.
app.module
in importing Graphql Module, typepaths property defines to create typings from schemas present in any path.
but I don't have any particular schema because I want my user to enter any thing he want and fetch data using Graphql where typings should be with respect to particular user.
Things I tried:
I tried to rewrite the schema using filesystem methods from service but to update typings from schema nest server needs to restart to generate typings again.
please anyone give me a guide or any approach how can I achieve dynamic typings. I want a server which shows a graphql playground but user should be allow to query with respect to their data.
like for user 1 this highlighted box can be a schema but for different user this schema should be with respect to himself:user 1 should see this schema and should query only using this schema
Related Images are attached in link.
Any guide would be appreciated, Thanks!

What can I use in place of DB.Where

In Gorm we can use DB.Where to check the data of the user from the database for authentication. But I have to use Go Fiber so what can I use in place of DB.Where to check if the user is present in the database.
var user models.User
database.DB.Where("id = ?", claims.Issuer).(&user)
Well, as per your question gorm is working as a database also as a framework.
you can use go fiber as a framework but if you want to use the database you cannot use the database from fiber instead you have to use a database from which you can find the collection of the data in the database.
For example, you are using MongoDB with GoFiber so it will use the method of DB.Collection.FindOne()
In form Db.Where is used to find the database collection
Well, as per your question gorm is working as a database also as a framework.
you can use go fiber as a framework but if you want to use the database you cannot use the database from fiber instead you have to use a database from which you can find the collection of the data in the database.
For example, you are using MongoDB with GoFiber so it will use the method of DB.Collection.FindOne()
In form Db.Where is used to find the database collection

Laravel - export db rows to sqlite format

We have a website based on Laravel 5.3 and a mobile app that can work offline. Laravel is using MySQL database.
I need to synchronize data between web and mobile app. Mobile app would make a request with a timestamp, and API would send all data changed since that timestamp.
My mobile developer said it would be easiest for him to receive the data as a single sqlite database file. So my question is:
is there a way in Laravel to export selected data to valid sqlite format?
sqlite format
Laravel got nothing to do with whatever your database server is. All you need to do is to dump your current database as pure SQL (i.e. using phpmyadmin) and import to sqlite database. If needed you can use tools like http://sqlitebrowser.org/ to import your dump and then hand your dev .sqlite binary file which shall work too.
I ended up by creating an Artisan command that dumps selected tables to sql and then converts it to sqlite using this script
So the whole code in my command looks like that:
exec('mysqldump -P ... login credentials ... tables to export ...'.storage_path('app/export/dump.sql'));
exec('mysql2sqlite '
. storage_path('app/export/dump.sql') . ' '
. storage_path('app/export/sqlite.db')
);

How i can import data from parse.com service in my own a mongodb database?

As you know, parse.com will be closed.
I made export of all collections.
Now i have the many dumps of collections.
Collections name like:
_User
AppParentCompany
It's normal tables name, but between this files i have relations, a relation contained in the next file:
_Join:parentCompanies:_User.json
Latest file name i understand like:
_Join - is relations
parentCompany - it's column
_User - a collection containing parentCompany column
Based on this, i have next questions:
How i can import this relations into a database?
What name will be for this collection of relation?
Thanks!
Take a look at this page: https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App
Prepare mongodb database connection string first.
Go to Parse your project's App Settings > General.
Find App Management > Migrate to external database. Press Migrate button.
Enter your database connection string, it will start with mongodb://...
Then press Begin the migration.
Then Parse will do the rest for you.
P.S. If you are using mongolab, go the web browser, into your database, then you can find _Join:xxx:xxx,​​​​​​ _SCHEMA and more in Collections.

Hide Parameters in web.show_document() when passing from ORACLE FORM to REPORT

I am new to racle forms and report generation, I have successfully created a report by using the following syntax
web.show_document('http://URL/reports/rwservlet?KEY1&report=reportpage.rdf&destype=cache&desformat=pdf&paramform=no&server=rsnic'||'&transid='|| FS_TEMP || '&user_parameter=' || 'User_data','_blank');
The issue is that when I generate the Report the above link comes in the Browser URL so if anyone changes the "User_data" the report gets changed.
Is there anyway I can hide the User Parameter and its value
To secure the call to web.show_document you first need to make use of the RUN_REPORT_OBJECT.
The Oracle White Paper Integrating Oracle Reports in Oracle Forms Services applications states:
The most secure approach for calling Reports from Forms on theWeb is
to use the Oracle Application Server 10g reports Services in
combination with RUN_ REPORT_OBJECT. Because the user’s database
connection is implicitly passed from Forms to Reports on the server,
there is no risk of interception as if it were passed in a URL.
From page 10 this same document explains with an example on how to use RUN_REPORT_OBJECT.

Resources