{ "alps" : { "version" : "1.0", "descriptor" : [ { "id" : "customer-representation", "href" : "http://linhnguyen.me/profile/customers", "descriptor" : [ { "name" : "gender", "type" : "SEMANTIC" }, { "name" : "firstName", "type" : "SEMANTIC" }, { "name" : "lastName", "type" : "SEMANTIC" }, { "name" : "profilePicUrl", "type" : "SEMANTIC" }, { "name" : "email", "type" : "SEMANTIC" }, { "name" : "address", "type" : "SEMANTIC" }, { "name" : "phone", "type" : "SEMANTIC" }, { "name" : "tier", "type" : "SEMANTIC", "doc" : { "format" : "TEXT", "value" : "STANDARD, SILVER, GOLD, PLATINUM" } }, { "name" : "subscribed", "type" : "SEMANTIC" }, { "name" : "createdDate", "type" : "SEMANTIC" }, { "name" : "modifiedDate", "type" : "SEMANTIC" }, { "name" : "isActive", "type" : "SEMANTIC" }, { "name" : "orders", "type" : "SAFE", "rt" : "http://linhnguyen.me/profile/orders#order-representation" }, { "name" : "reservations", "type" : "SAFE", "rt" : "http://linhnguyen.me/profile/reservations#reservation-representation" } ] }, { "id" : "create-customers", "name" : "customers", "type" : "UNSAFE", "rt" : "#customer-representation" }, { "id" : "get-customers", "name" : "customers", "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" : "#customer-representation" }, { "id" : "delete-customer", "name" : "customer", "type" : "IDEMPOTENT", "rt" : "#customer-representation" }, { "id" : "get-customer", "name" : "customer", "type" : "SAFE", "rt" : "#customer-representation" }, { "id" : "update-customer", "name" : "customer", "type" : "IDEMPOTENT", "rt" : "#customer-representation" }, { "id" : "patch-customer", "name" : "customer", "type" : "UNSAFE", "rt" : "#customer-representation" }, { "name" : "findBySubscribedTrue", "type" : "SAFE" } ] } }