Skip to content

Content delivery system for RAS portal of SPO IITK in golang

Notifications You must be signed in to change notification settings

spo-iitk/ras-cdn

Repository files navigation

API Documentation

    [POST]      /cdn/upload             - Uploads a file to the server
    [DELETE]    /cdn/delete             - Deletes a file from the server
    [GET]       /cdn/view/<filename>    - Views a file from the server
    [GET]       /cdn/view/all           - List of all files on the server
    [POST]      /cdn/zip                - Zips a list of files, returns the filename
    [GET]       /cdn/zip/<filename>     - Zips a list of files and downloads it
    [DELETE]    /cdn/zip                - Deletes a zip from the server
    [DELETE]    /cdn/zip/all            - Deletes all zip files available on the server

Body

type Delete*Request struct {
	Filename string `json:"filename"`
}

type ZipRequest struct {
	Files   []string `json:"files"`
	OutFile string   `json:"outfile"`
}

About

Content delivery system for RAS portal of SPO IITK in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published