This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
([adsi]”WinNT://./Hyper-V Administrators,group”).Add(“WinNT://$env:UserDomain/$env:Username,user”) | |
minishift config set vm-driver virtualbox | |
https://www.marksei.com/openshift-minishift-widnows/ | |
https://bierkowski.com/minishift-setup-on-windows/ | |
minishift console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /v1/user?q="userId,firstName,lastName" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eg. GET '/v1/rms/property?startPage=5&pageSize=10' | |
YAML: /v1/rms/property: | |
get: | |
tags: | |
- Property | |
summary: Returns a list of properties | |
description: Returns a list of properties | |
operationId: GetPropertyList | |
consumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by Jayesh J. | |
*.class | |
*.log | |
*.iml | |
*.ipr | |
*.iws | |
.idea | |
out | |
.cache/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arrayOfObjects = [ | |
{ | |
name: 'Diana', | |
born: 1373925600000, // Mon, Jul 15 2013 | |
num: 4, | |
sex: 'female' | |
}, | |
{ | |
name: 'Beyonce', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Products extends Controller { | |
public CompletionStage<Result> uploadProducts() throws Exception { | |
return CompletableFuture.supplyAsync(() -> addProductsToCatalog()) | |
.thenApply(i -> ok("Products uploaded: " + i)); | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Products extends Controller { | |
public WebSocket<String> products() { | |
return new WebSocket<String>() { | |
public void onReady(WebSocket.In<String> in, | |
WebSocket.Out<String> out) { | |
in.onMessage(new F.Callback<String>() { | |
public void invoke(String event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Product: | |
{ | |
"_id":ObjectId("131233adsad131231233"), | |
"username":"xyz", | |
"name":"Godrej 231 Litres RT Eon 231 C 2.3 Frost Free Refrigerator (Silver)", | |
"category":"Electronics", | |
"sub_category":"Refridgerator", | |
"pricing":{ | |
"cost_price":18960, | |
"discount": 10, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "CartSchema", | |
"id": "cart", | |
"type": "object", | |
"properties": { | |
"orderID": { | |
"id": "orderID", | |
"type": "string" | |
}, | |
"orderItems": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "UserSchema", | |
"id": "user", | |
"type": "object", | |
"properties": { | |
"ID": { | |
"id": "ID", | |
"type": "string" | |
}, | |
"username": { |
NewerOlder