Skip to content

artamananda/artanymous

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARTANYMOUS RESTful API

An application like secreto.site. Anonymous message API.

API Specs

Servers:

http://localhost:3000

Messages

List all Messages

Endpoint:

GET /api/messages

Request Header:

  • X-API-Key : Key (Mandatory)

Response:

{
    "code" : 200,
    "status" : "OK",
    "data" : [
        {
            "id" : "69bcd738-b4eb-4f24-a838-25a0d7351ea4",
            "question" : "Hello World",
            "created_at": "2023-08-05T23:11:50.749697Z"
        }
    ]
}

Create new Messages

Endpoint:

POST /api/messages

Request Header:

  • X-API-Key : Key (Mandatory)

Request Body:

{
    "question" : "Hello World"
}

Response:

{
    "code" : 200,
    "status" : "OK",
    "data" : [
        {
            "id": "69bcd738-b4eb-4f24-a838-25a0d7351ea4",
            "question": "Hello World"
        }
    ]
}

Find Messages by Id

Endpoint:

GET /api/messages/:messageId

Request Header:

  • X-API-Key : Key (Mandatory)

Response:

{
    "code" : 200,
    "status" : "OK",
    "data" : [
        {
            "id" : "69bcd738-b4eb-4f24-a838-25a0d7351ea4",
            "question" : "Hello World",
            "created_at": "2023-08-05T23:11:50.749697Z"
        }
    ]
}

Delete message by Id

Endpoint:

DELETE /api/messages/:messageId

Request Header:

  • X-API-Key : Key (Mandatory)

Response:

{
    "code" : 200,
    "status" : "OK"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages