You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
This is the OpenAPI specification of the RabbitMQ HTTP API.
4
4
5
+
Use [OpenAPI-Generator](https://github.com/OpenAPITools/openapi-generator) to build client and server stubs.
6
+
To use ```generator.sh``` included in this project, you must have ```openapi-generator``` command installed on your build environment.
7
+
You can also use the node version, to install: ```npm install @openapitools/openapi-generator-cli -g```.
8
+
5
9
For more information, please refer to RabbitMQ [HTTP API](https://cdn.rawgit.com/rabbitmq/rabbitmq-management/v3.7.14/priv/www/api/index.html) official documentation.
sed -i '''s#netcoreapp2.1#netcoreapp2.2#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/$PACKAGE_NETCORE.csproj
42
-
# Compatibility to 2.2
43
-
sed -i '''s#CompatibilityVersion.Version_2_1#CompatibilityVersion.Version_2_2#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/Startup.cs
44
-
# Default JSON serialisation preferences
45
-
ex -s -c '24i|using Newtonsoft.Json;' -c x $DESTINATION_DIR/src/$PACKAGE_NETCORE/Startup.cs
46
-
ex -s -c '59i| opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;' -c x $DESTINATION_DIR/src/$PACKAGE_NETCORE/Startup.cs
47
-
ex -s -c '60i| opts.SerializerSettings.DateFormatHandling = DateFormatHandling.IsoDateFormat;' -c x $DESTINATION_DIR/src/$PACKAGE_NETCORE/Startup.cs
48
-
ex -s -c '61i| opts.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;' -c x $DESTINATION_DIR/src/$PACKAGE_NETCORE/Startup.cs
39
+
40
+
# Post Generation Customize
41
+
sed -i '''s#<Authors>OpenAPI</Authors>#<Authors>Carlos Lozano Diez</Authors>#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/$PACKAGE_NETCORE.csproj
42
+
sed -i '''s#<Company>OpenAPI</Company>#<Company>ThinkCode</Company>#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/$PACKAGE_NETCORE.csproj
43
+
sed -i '''s#<AssemblyTitle>OpenAPI Library</AssemblyTitle>#<AssemblyTitle>Rabbitmq HTTP API Client</AssemblyTitle>#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/$PACKAGE_NETCORE.csproj
44
+
sed -i '''s#<Copyright>No Copyright</Copyright>#<Copyright>Copyright 2019 Carlos Lozano Diez</Copyright>#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/$PACKAGE_NETCORE.csproj
45
+
sed -i '''s#<Description>A library generated from a OpenAPI doc</Description>#<Description>RabbitMQ HTTP API Client for .netCore, tested with v3.7.x of RabbitMQ</Description>#'$DESTINATION_DIR/src/$PACKAGE_NETCORE/$PACKAGE_NETCORE.csproj
0 commit comments