Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 72c8059

Browse files
author
Kevin Richter
committed
Format
1 parent 9e25c74 commit 72c8059

File tree

10 files changed

+33
-25
lines changed

10 files changed

+33
-25
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ build/
1616
.cache
1717
.vagrant
1818
.sass-cache
19-
source/*.md
2019
source/wrapper
2120

2221
# YARD artifacts

source/includes/_directory.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

source/includes/v1/_directory.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Pages
2+
3+
- [Home](index.html)
4+
- [API](api.html)
5+
- [API OpenAPI (Swagger) Definition](api/index.html)
6+
- [API Wrapper](wrapper.html)
7+
- [API Wrapper Class Documentation](/wrapper/index.html)

source/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<meta http-equiv="refresh" content="0;url=/v1/" />
4+
</head>
5+
<body>
6+
<a href="/v1/">Click here to go to the /v1/ documentation if you're not redirected automatically.</a>
7+
</body>
8+
</html>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ toc_footers:
1010
- <a href='https://github.com/lord/slate'>Documentation Powered by Slate</a>
1111

1212
includes:
13-
- directory
13+
- v1/directory
1414

1515
search: true
1616
---
@@ -19,7 +19,6 @@ search: true
1919

2020
...
2121

22-
2322
# Return Data
2423

2524
> For Success Responses
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toc_footers:
66
- <a href='https://github.com/lord/slate'>Documentation Powered by Slate</a>
77

88
includes:
9-
- directory
9+
- v1/directory
1010

1111
search: true
1212
---
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ toc_footers:
1010
- <a href='https://github.com/lord/slate'>Documentation Powered by Slate</a>
1111

1212
includes:
13-
- directory
13+
- v1/directory
1414

1515
search: true
1616
---
@@ -19,7 +19,7 @@ search: true
1919

2020
## Building a Map
2121

22-
```Wrapper
22+
```javascript--wrapper
2323
const api = window.api;
2424
```
2525

@@ -34,7 +34,7 @@ const job = await api.jobs.new({
3434
}).save();
3535
```
3636

37-
First a [`Job`](/api/index.html#JobCreateRequest). A Job is a project on the Maps4News Platform.
37+
First a [`Job`](api/index.html#JobCreateRequest). A Job is a project on the Maps4News Platform.
3838

3939
<br/><br/><br/><br/>
4040

@@ -45,11 +45,11 @@ const revision = await job.revisions.new({
4545
}).save(mapObject);
4646
```
4747

48-
Second a [`Job Revision`](/api/index.html#JobRevisionCreateRequest). A Revision is a point-in-time that the user decided to save his/her current progress in designing their map.
48+
Second a [`Job Revision`](api/index.html#JobRevisionCreateRequest). A Revision is a point-in-time that the user decided to save his/her current progress in designing their map.
4949

5050
A map object must be given to each revision. Revisions can not be updated, each save will result in a new revision.
5151

52-
Details about how to build a map object can be found on the [map object page](/dispatcher.html).
52+
Details about how to build a map object can be found on the [map object page](dispatcher.html).
5353

5454
<br/>
5555

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ toc_footers:
1010
- <a href='https://github.com/lord/slate'>Documentation Powered by Slate</a>
1111

1212
includes:
13-
- directory
13+
- v1/directory
1414

1515
search: true
1616
---
@@ -34,7 +34,7 @@ We have created a query builder-like library that is able to do everything our A
3434

3535
The library is freely available on [github](https://github.com/MapCreatorEU/api-wrapper) and [npm](https://www.npmjs.com/package/@mapcreator/maps4news).
3636

37-
More information about the wrapper can be found on [this page](/wrapper.html)
37+
More information about the wrapper can be found on [this page](wrapper.html)
3838

3939
# Authentication
4040

@@ -123,7 +123,7 @@ You must have a valid client registered with us to be able to use the API. Clien
123123

124124
The next step in learning about our API would be to look into our OpenAPI documentation about all the available endpoints.
125125

126-
[API OpenAPI (Swagger) Definition](/api/index.html)
126+
[API OpenAPI (Swagger) Definition](api/index.html)
127127

128128
Our you can look into how the wrapper works.
129129

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toc_footers:
66
- <a href='https://github.com/lord/slate'>Documentation Powered by Slate</a>
77

88
includes:
9-
- directory
9+
- v1/directory
1010

1111
search: true
1212
---
@@ -86,7 +86,7 @@ const token = "...";
8686
const api = new Maps4News(token);
8787
```
8888

89-
A machine token can be used directly while instaciating the api instance.
89+
A machine token can be used directly while instantiating the api instance.
9090

9191
## Implicit flow
9292

@@ -273,15 +273,17 @@ const job = await api.jobs.new({
273273
}).save();
274274

275275
const revision = await job.revisions.new({
276-
mapstyleSetId: 1
276+
mapstyleSetId: 1
277277
}).save(object);
278278

279279
// Will resolve when the request finishes. Not when the build is done.
280280
await revision.build("https://example.com/callback");
281281
```
282282

283-
Creating a new job and building it is pretty straight foreward. Revisions are slightly different then other resource instances. Their save function requires the new map definition as an argument. This is to make it easier to re-use the same revision instance.
284-
283+
Creating a new job and building it is pretty straight forward.
284+
Revisions are slightly different then other resource instances.
285+
Their save function requires the new map definition as an argument.
286+
This is to make it easier to re-use the same revision instance.
285287

286288
## Pagination
287289

@@ -369,4 +371,4 @@ api.layers.search(query).then(console.dir);
369371
The `search` method is an extension of `list`. This means that `.search({})` is the same as
370372
`list()`. More information about search query formatting can be found in the api documentation.
371373

372-
[api documepntation]: https://api.beta.maps4news.com/docs/
374+
[api documentation]: https://api.beta.maps4news.com/docs/

0 commit comments

Comments
 (0)