Closed chaoran-chen closed 4 years ago
Since "everything" is a wiki page, adding a device means inserting a wiki page of the type "device".
The API should look as follows:
Request:
POST /wiki { type: "device", title: string, description: string, references: string (optional) }
Response:
This endpoint should only be available for registered users.
A database table wiki_page should be created which has the columns "id", "type", "title", "description" and "references".
wiki_page
Since "everything" is a wiki page, adding a device means inserting a wiki page of the type "device".
The API should look as follows:
Request:
Response:
This endpoint should only be available for registered users.
A database table
wiki_page
should be created which has the columns "id", "type", "title", "description" and "references".