Date Range Types

A date range type indicates the unit of measure for a date range. Typically will be included in resources that contains a date range field(s).

Notes ::

  • By passing in the content-type of application/help in the accept header or using the {format} parameter help from https://CHURCHCODE.fellowshiponeapi.com/groups/v1/grouptypes, the API will return an html representation of the help documents for this resource (*authentication not required*)

Authentication

This method requires Authentication

Resource Structure

This resource conforms to the following XSD

Methods

Date Range Types ::

  • list [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes
  • show [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/{id}

Method: list [GET]

The list method will return a list of dataRangeTypes.

Notes ::

  • By passing in the content-type of application/xsd in the accept header or using the {format} parameter xsd the API will return an xsd for a single version of this resource (authentication not required)

Content-types ::

  • application/json
  • application/xml
  • application/xsd
  • application/help

Format ::

  • json
  • xml
  • xsd
  • help

Parameters ::

  • {format}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes.{format}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes?format={format}
    • [Header] Accept : {Content-type}

Sample Response ::

Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 14 Apr 2010 19:03:54 GMT
Content-Length: 1011

<?xml version="1.0" encoding="utf-8"?>
<dateRangeTypes>
    <dateRangeType json:Array="true" id="0" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/0">
        <name>Unspecified</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="1" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/1">
        <name>Ticks</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="2" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/2">
        <name>Milliseconds</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="3" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/3">
        <name>Seconds</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="4" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/4">
        <name>Days</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="5" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/5">
        <name>Weeks</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="6" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/6">
        <name>Months</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="7" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7">
        <name>Years</name>
    </dateRangeType>
    <dateRangeType json:Array="true" id="8" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/8">
        <name>DOB</name>
    </dateRangeType>
</dateRangeTypes>

Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes.json

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes.json
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 02 Nov 2010 20:38:35 GMT
Content-Length: 5384

{
   "dateRangeTypes":{
      "dateRangeType":[
         {
            "@array":"true",
            "@id":"0",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/0",
            "name":"Unspecified"
         },
         {
            "@array":"true",
            "@id":"1",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/1",
            "name":"Ticks"
         },
         {
            "@array":"true",
            "@id":"2",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/2",
            "name":"Milliseconds"
         },
         {
            "@array":"true",
            "@id":"3",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/3",
            "name":"Seconds"
         },
         {
            "@array":"true",
            "@id":"4",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/4",
            "name":"Days"
         },
         {
            "@array":"true",
            "@id":"5",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/5",
            "name":"Weeks"
         },
         {
            "@array":"true",
            "@id":"6",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/6",
            "name":"Months"
         },
         {
            "@array":"true",
            "@id":"7",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7",
            "name":"Years"
         },
         {
            "@array":"true",
            "@id":"8",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/8",
            "name":"DOB"
         }
      ]
   }
}

Method: show [GET]

The show method will return a single dateRangeType for a given id.

Notes ::

  • By passing in the content-type of application/xsd in the accept header or using the {format} parameter xsd the API will return an xsd for a single version of this resource (authentication not required)

Content-types ::

  • application/json
  • application/xml
  • application/xsd
  • application/help

Format ::

  • json
  • xml
  • xsd
  • help

Parameters ::

  • {format}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/{id}.{format}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/{id}?format={format}
    • [Header] Accept : {Content-type}
  • {id}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/{id}

Sample Response ::

Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 14 Apr 2010 19:09:54 GMT
Content-Length: 176

<dateRangeType id="7" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7">
    <name>Years</name>
</dateRangeType>

Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7.json

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7.json
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 14 Apr 2010 19:10:42 GMT
Content-Length: 119

{
   "dateRangeType":{
      "@id":"7",
      "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/daterangetypes/7",
      "name":"Years"
   }
}