[AB-82] adding urban dictionary api with a command

adding Instant handling to GSON
This commit is contained in:
Sheldan
2021-03-29 01:13:46 +02:00
parent c2b413e4b9
commit 45c1df0d44
21 changed files with 292 additions and 6 deletions

View File

@@ -8,6 +8,7 @@
http://www.liquibase.org/xml/ns/pro ../../dbchangelog-3.8.xsd" >
<property name="utilityModule" value="(SELECT id FROM module WHERE name = 'utility')"/>
<property name="youtubeFeature" value="(SELECT id FROM feature WHERE key = 'youtube')"/>
<property name="urbanFeature" value="(SELECT id FROM feature WHERE key = 'urban')"/>
<changeSet author="Sheldan" id="webservices_youtube-commands">
<insert tableName="command">
@@ -17,4 +18,12 @@
</insert>
</changeSet>
<changeSet author="Sheldan" id="webservices_urban-commands">
<insert tableName="command">
<column name="name" value="urbanDefine"/>
<column name="module_id" valueComputed="${utilityModule}"/>
<column name="feature_id" valueComputed="${urbanFeature}"/>
</insert>
</changeSet>
</databaseChangeLog>

View File

@@ -10,5 +10,8 @@
<insert tableName="feature">
<column name="key" value="youtube"/>
</insert>
<insert tableName="feature">
<column name="key" value="urban"/>
</insert>
</changeSet>
</databaseChangeLog>

View File

@@ -6,5 +6,5 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog-3.8.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog-3.8.xsd
http://www.liquibase.org/xml/ns/pro dbchangelog-3.8.xsd" >
<include file="1.0-webservices/collection.xml" relativeToChangelogFile="true"/>
<include file="1.2.5-webservices/collection.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

View File

@@ -1,4 +1,9 @@
abstracto.featureFlags.youtube.featureName=youtube
abstracto.featureFlags.youtube.enabled=false
abstracto.feature.youtube.apiKey=${YOUTUBE_API_KEY}
abstracto.featureFlags.urban.featureName=urban
abstracto.featureFlags.urban.enabled=false
abstracto.feature.youtube.apiKey=${YOUTUBE_API_KEY}
abstracto.feature.webservices.urban.requestURL=https://api.urbandictionary.com/v0/define?term=%s