icebreaker-science / backend

The backend (Spring Boot) part of the icebreaker.science application
Apache License 2.0
2 stars 0 forks source link

Add device #6

Closed chaoran-chen closed 4 years ago

chaoran-chen commented 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".