Page Type
Provides Page Types which are applied to a Page
Resource URIs
Item URI: /vx/page_type/{pk}/
Collection URI: /vx/page_type/
Item
Item Methods
GET
Retrieve a Page Type by id
Item properties
Name | Description | Type | HTTP Support |
---|---|---|---|
title |
The Page Type’s title, e.g. “Public Figure” | text | GET: required |
Item links
self
A link to this resource
Collection
Collection methods
GET
Get a list of Page Types.
Collection links
self
A link to this resource
Embedded collections
page_types
A collection of Page Types with properties as described under Item properties and links as described under Item links
Usage
GET Page Type entity
Request GET: /vx/page_type/{pk}/
Response
{
'_links': {
'documentation': [
{
'href': 'https://developer.mapmyfitness.com/docs/vx_Page_Type/'
}
],
'self': [
{
'href': '/vx/page_type/public_entity/',
'id': 'public_entity'
}
],
},
'title': 'Public entity'
}
GET Page Type collection
Request GET: /vx/page_type/
Response
{
'_embedded': {
'page_types': [
{
'_links': {
'self': [
{
'href': '/vx/page_type/personal/',
'id': 'personal'
}
],
},
'title': 'Personal'
},
{
'_links': {
'self': [
{
'href': '/vx/page_type/public_entity/',
'id': 'public_entity'
}
],
},
'title': 'Public entity'
},
{
'_links': {
'self': [
{
'href': '/vx/page_type/public_figure/',
'id': 'public_figure'
}
],
},
'title': 'Public figure'
}
]
},
'_links': {
'documentation': [
{
'href': 'https://developer.mapmyfitness.com/docs/vx_Page_Type/'
}
],
'self': [
{
'href': '/vx/page_type/?limit=20&offset=0'
}
]
},
'total_count': 3
}