Skip to content

Instantly share code, notes, and snippets.

@thomas4019
Created September 14, 2018 16:03
Show Gist options
  • Select an option

  • Save thomas4019/b428bb93ffeee434a016db7f64553e5f to your computer and use it in GitHub Desktop.

Select an option

Save thomas4019/b428bb93ffeee434a016db7f64553e5f to your computer and use it in GitHub Desktop.
Example expressa collection with links
{
"_id": "race_signup",
"schema": {
"type": "object",
"properties": {
"race_id": {
"type": "string",
"links": [
{
"rel": "» view race details",
"href": "/admin/#/edit/race/{{self}}",
"class": "comment-link open-in-modal primary-text"
}
]
},
"user_id": {
"type": "string",
"links": [
{
"rel": "» view user details",
"href": "/admin/#/edit/users/{{self}}",
"class": "comment-link open-in-modal primary-text"
}
]
},
"status": {
"type": "string",
"enum": [
"pending",
"registered",
"request_cancel",
"canceled",
"completed"
]
},
"distance": {
"type": "string"
},
"cancellation_reason": {
"type": "string"
}
},
"listing": {
"columns": [
"race.meta.created",
"status",
"race.name",
"distance",
"race.datetime",
"race.website",
"user.email",
"user.first_name",
"user.last_name"
]
}
},
"storage": "postgres",
"documentsHaveOwners": true,
"meta": {
"created": "2017-03-14T07:10:05.574Z",
"updated": "2017-03-17T08:28:20.732Z",
"owner": "a52ee085-ff47-4ee2-bac2-a8a319f674ed"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment