The application for a writ of certiorari must be made on affidavit by the party beneficially interested, and the court may require a notice of the application to be given to the adverse party, or may grant an order to show cause why it should not be allowed, or may grant the writ without notice.
SDCL 21-31-2