Marital Statuses

Marital status is a demographic type that is used in the definition of a group.

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/maritalstatuses, 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

Marital Statuses ::

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

Method: list [GET]

The list method will return a list of marital statuses.

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/maritalstatuses.{format}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses?format={format}
    • [Header] Accept : {Content-type}

Sample Response ::

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

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses
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"?>
<maritalStatuses>
    <maritalStatus json:Array="true" id="0" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/0">
        <name>Married or Single</name>
    </maritalStatus>
    <maritalStatus json:Array="true" id="1" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/1">
        <name>Married</name>
     </maritalStatus>
    <maritalStatus json:Array="true" id="2" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/2">
        <name>Single</name>
    </maritalStatus>
</maritalStatuses>

Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses.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/maritalstatuses.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

{
   "maritalStatuses":{
      "maritalStatus":[
         {
            "@array":"true",
            "@id":"0",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/0",
            "name":"Married or Single"
         },
         {
            "@array":"true",
            "@id":"1",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/1",
            "name":"Married"
         },
         {
            "@array":"true",
            "@id":"2",
            "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/2",
            "name":"Single"
         }
      ]
   }
}

Method: show [GET]

The show method will return a single maritalstatus 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/maritalstatuses/{id}.{format}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/{id}?format={format}
    • [Header] Accept : {Content-type}
  • {id}
    • [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/{id}

Sample Response ::

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

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/1
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

<maritalStatus id="1" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/1">
    <name>Married</name>
</maritalStatus>

Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/1.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/maritalstatuses/1.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

{
    "maritalStatus":
    {
        "@id":"1",
        "@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/maritalstatuses/1",
        "name":"Married"
    }
}