aboutsummaryrefslogtreecommitdiff
path: root/README.adoc
blob: 2e7ad2d15f7a9d5b3fd0f799e969ef3335115eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
image:https://img.shields.io/badge/git-repo-cba6f7?logo=git[link=https://git.vapor.systems/ac-cup-server.git]
image:https://img.shields.io/badge/github-repo-blue?logo=github[link=https://github.com/maxaudron/ac-cup-server]
image:https://img.shields.io/badge/gitlab-repo-orange?logo=github[link=https://gitlab.com/cocainefarm/ac-cup-server]

= Assetto Corsa Content Manage Update Server

This is a small project to act as https://github.com/ac-custom-shaders-patch/acc-extension-config/wiki/Unrelated-%E2%80%93-About-content-auto-updates-system-(CUP)[CUP] Server that provides automatic update information for Content Manager.

== API
=== GET /
Gives a list of all available cars, tracks, etc. mapped to their version.
The structure of the API is the same for all types, so this doc will be generic.

  {
    "car": {
      "car_name": "1.0"
    },
    "track": {}
    "luaapp": {}
    "app": {}
    "filter": {}
  }

=== GET /<type>/<name>
  {
    "name": "",
    "author": "",
    "informationUrl": "",
    "version": "1.0",
    "active": true,
    "cleanInstallation": false
  }

=== GET /<type>/<name>/get
  HTTP 302 <download url>

== Storage

Data is stored in a single json file:

  {
    "car": {
      "<name>": {
        "name": "",
        "author": "",
        "informationUrl": "",
        "version": "1.0",
        "active": true,
        "cleanInstallation": false,
        "downloadUrl": ""
      }
    }
    "track": {}
    "luaapp": {}
    "app": {}
    "filter": {}
  }