{ "alps" : { "version" : "1.0", "descriptor" : [ { "id" : "promotion-representation", "href" : "http://linhnguyen.me/profile/promotions", "descriptor" : [ { "name" : "title", "type" : "SEMANTIC" }, { "name" : "imageUrl", "type" : "SEMANTIC" }, { "name" : "subTitle", "type" : "SEMANTIC" }, { "name" : "url", "type" : "SEMANTIC" }, { "name" : "content", "type" : "SEMANTIC" }, { "name" : "availableFrom", "type" : "SEMANTIC" }, { "name" : "availableTo", "type" : "SEMANTIC" }, { "name" : "percentDown", "type" : "SEMANTIC" }, { "name" : "createdDate", "type" : "SEMANTIC" }, { "name" : "modifiedDate", "type" : "SEMANTIC" }, { "name" : "isActive", "type" : "SEMANTIC" } ] }, { "id" : "create-promotions", "name" : "promotions", "type" : "UNSAFE", "rt" : "#promotion-representation" }, { "id" : "get-promotions", "name" : "promotions", "type" : "SAFE", "descriptor" : [ { "name" : "page", "type" : "SEMANTIC", "doc" : { "format" : "TEXT", "value" : "The page to return." } }, { "name" : "size", "type" : "SEMANTIC", "doc" : { "format" : "TEXT", "value" : "The size of the page to return." } }, { "name" : "sort", "type" : "SEMANTIC", "doc" : { "format" : "TEXT", "value" : "The sorting criteria to use to calculate the content of the page." } } ], "rt" : "#promotion-representation" }, { "id" : "delete-promotion", "name" : "promotion", "type" : "IDEMPOTENT", "rt" : "#promotion-representation" }, { "id" : "get-promotion", "name" : "promotion", "type" : "SAFE", "rt" : "#promotion-representation" }, { "id" : "update-promotion", "name" : "promotion", "type" : "IDEMPOTENT", "rt" : "#promotion-representation" }, { "id" : "patch-promotion", "name" : "promotion", "type" : "UNSAFE", "rt" : "#promotion-representation" }, { "name" : "getFirstByAvailableFromBeforeAndAvailableToAfter", "type" : "SAFE", "descriptor" : [ { "name" : "today", "type" : "SEMANTIC" }, { "name" : "today2", "type" : "SEMANTIC" } ] }, { "name" : "getPromotionByTime", "type" : "SAFE", "descriptor" : [ { "name" : "availableFrom", "type" : "SEMANTIC" }, { "name" : "availableTo", "type" : "SEMANTIC" } ] } ] } }