Skip to content

Commit 82180e9

Browse files
committed
formatting/markdown cleanup
1 parent 107e349 commit 82180e9

1 file changed

Lines changed: 29 additions & 23 deletions

File tree

geography/README.md

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Geographical data will be stored as GeoJSON and read from either `geographies.js
1111
## Table of Contents
1212

1313
* [General Information](#general-information)
14-
* [Versioning](#versioning)
15-
* [Transition from Policy](#transition-from-policy)
14+
* [Versioning](#versioning)
15+
* [Transition from Policy](#transition-from-policy)
1616
* [Distribution](#distribution)
17-
* [Flat Files](#flat-files)
18-
* [Response Format](#response-format)
19-
* [Authorization](#authorization)
17+
* [Flat Files](#flat-files)
18+
* [Response Format](#response-format)
19+
* [Authorization](#authorization)
2020
* [Schema](#schema)
2121
* [Geography Fields](#geography-fields)
2222
* [Previous Geographies](#previous-geographies)
@@ -45,7 +45,7 @@ Versioning must be implemented as specified in the [Versioning section][versioni
4545

4646
To ensure this Geography API is not creating a breaking change for the 1.1.0 release, it's expected that the data contained in the [`/geographies`](/policy#geography) endpoint in the Policy API is identical to this Geography API. This will ensure that when a Geography ID is used anywhere in this release, the data could be retrieved from either location.
4747

48-
This temporary requirement is to ensure backwards compatibility, but the overall intent is to remove the /policy/geographies endpoint at the next major MDS release.
48+
This temporary requirement is to ensure backwards compatibility, but the overall intent is to remove the /policy/geographies endpoint at the next major MDS release.
4949

5050
[Top][toc]
5151

@@ -65,7 +65,7 @@ Geographies should be re-fetched at an agreed upon interval between providers an
6565

6666
To use a flat file, geographies shall be represented in one (1) file equivalent to the /geographies endpoint:
6767

68-
- `geographies.json`
68+
* `geographies.json`
6969

7070
The files shall be structured like the output of the [REST endpoints](#rest-endpoints) above.
7171

@@ -115,6 +115,8 @@ Obsoleting or otherwise changing a geography is accomplished by publishing a new
115115

116116
This field is optional can be omitted by the publishing Agency.
117117

118+
[Top][toc]
119+
118120
### Geography Type
119121

120122
Type of geography. These specific types are recommendations based on ones commonly defined by agencies. Others may be created by the Agency as needed, or the optional `geography_type` field may be omitted.
@@ -148,16 +150,17 @@ Type of geography. These specific types are recommendations based on ones common
148150
Note: to use flat files rather than REST endpoints, Geography objects should be stored in `geographies.json`. The `geographies.json` file will look like the output of `GET /geographies`.
149151

150152
Example `geographies.json`
151-
```json
153+
154+
```jsonc
152155
{
153-
"version": "1.1.0",
156+
"version": "1.2.0",
154157
"updated": "1570035222868",
155158
"geographies": [
156159
{
157-
// GeoJSON 1
160+
// Geography 1
158161
},
159162
{
160-
// GeoJSON 2
163+
// Geography 2
161164
}
162165
]
163166
}
@@ -177,22 +180,22 @@ The Geography Author API consists of the following endpoints:
177180
**Method**: `GET`
178181
**Schema:** [`geography` schema](./geography.json)
179182

180-
Path Params:
183+
#### Query Parameters
181184

182185
| Name | Type | Required/Optional | Description |
183186
| ------------- | ---- | --- | --------------------------------------------------- |
184-
| geography_id | UUID | Required | Unique identifier for a single specific Geography |
187+
| `geography_id` | UUID | Required | Unique identifier for a single specific Geography |
185188

186-
Returns: Details of a single Geography based on a UUID.
189+
Returns: Details of a single Geography based on a UUID.
187190

188191
Response body:
189192

190193
```js
191194
{
192-
"version": '1.1.0',
195+
"version": '1.2.0',
193196
"geography": {
194197
"geography_id": UUID,
195-
"geography_type": Enum,
198+
"geography_type": string,
196199
"name": string,
197200
"description": string,
198201
"published_date": timestamp,
@@ -204,10 +207,11 @@ Response body:
204207
```
205208

206209
Response codes:
207-
- 200 - success
208-
- 401 - unauthorized
209-
- 404 - no geography found
210-
- 403 - user is attempting to read an unpublished geography, but only has the `geographies:read:published` scope.
210+
211+
* 200 - success
212+
* 401 - unauthorized
213+
* 404 - no geography found
214+
* 403 - user is attempting to read an unpublished geography, but only has the `geographies:read:published` scope.
211215

212216
[Top][toc]
213217

@@ -220,7 +224,8 @@ Response codes:
220224
Returns: All geography objects
221225

222226
Response body:
223-
```js
227+
228+
```jsonc
224229
{
225230
"version": "1.1.0",
226231
"updated": "1570035222868",
@@ -236,8 +241,9 @@ Response body:
236241
```
237242

238243
Response codes:
239-
- 200 - success
240-
- 401 - unauthorized
244+
245+
* 200 - success
246+
* 401 - unauthorized
241247

242248
[Top][toc]
243249

0 commit comments

Comments
 (0)