<commit_before># publish.webmaker.org - endpoints style

this is a exploratory implementation of the projected 
[`publish.webmaker.org` API](https://github.com/mozilla/publish.webmaker.org),
built with the [endpoints framework](https://github.com/endpoints/endpoints).

## up and running

```shell
$ git clone https://github.com/ashleygwilliams/publishAPI-endpoints.git
$ cd publishAPI-endpoints
$ npm install
$ npm start
```

then open `http://localhost:8080/`. this will show you all supported routes,
relations, and filters.

## routes

```javascript
// http://localhost:8080/v1

{
  "files": "/v1/files?include={project}&filter[{project_id,type,path}]",
  "projects": "/v1/projects?include={user,files}&filter[{user_id,title}]",
  "users": "/v1/users?include={projects}&filter[{name}]"
}
```<commit_msg>update readme to reflect new filters in routes<commit_after># publish.webmaker.org - endpoints style

this is a exploratory implementation of the projected 
[`publish.webmaker.org` API](https://github.com/mozilla/publish.webmaker.org),
built with the [endpoints framework](https://github.com/endpoints/endpoints).

## up and running

```shell
$ git clone https://github.com/ashleygwilliams/publishAPI-endpoints.git
$ cd publishAPI-endpoints
$ npm install
$ npm start
```

then open `http://localhost:8080/`. this will show you all supported routes,
relations, and filters.

## routes

```javascript
// http://localhost:8080/v1

{
  "files": "/v1/files?include={project}&filter[{project_title,type,path}]",
  "projects": "/v1/projects?include={user,files}&filter[{user_name,title}]",
  "users": "/v1/users?include={projects}&filter[{name}]"
}
```
{'fraction_non_alphanumeric': 0.16707021791767554, 'fraction_numerical': 0.014527845036319613, 'mean_word_length': 5.612, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2507962', 'n_tokens_mistral': 553, 'n_tokens_neox': 518, 'n_words': 115}