# Banner ### GET All Banner * Endpoint : /api/banner/banners * HTTP Method : GET * Requires Auth : true * Request Param : * Path Variable : - * Response Header : * Authorization : Bearer [token] * Set-Cookie : xy_user_id=user_id * Set-Cookie : xy_session_id=session #### Success Response Body ```` { code: 200 status: "OK" data: [ "[ImageUrl1]", "[ImageUrl2]", ... ] } ```` #### Error Response Body ```` { code: 401 status: "NOT AUTHORIZED" errors: ["User is not logged in"] } ```` ### POST New Banner Configuration * Endpoint : /api/admin/banner/banners * HTTP Method : POST * Requires Auth : true * Request Param : * Path Variable : - * Response Header : * Authorization : Bearer [token] * Set-Cookie : xy_user_id=user_id * Set-Cookie : xy_session_id=session #### Request Body ```` { banners: [ "[ImageUrl1]", "[ImageUrl2]", ... ] } ```` #### Success Response Body ```` { code: 200 status: "OK" data: { banners: [ "[ImageUrl1]", "[ImageUrl2]", ... ] } } ```` #### Error Response Body ```` { code: 401 status: "NOT AUTHORIZED" errors: ["User is not logged in"] } ````
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up